2 implementations of AudioBuffer_read:
#1
/digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm ·
#2
/digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
(bind-func AudioBuffer_read
(lambda (ab:AudioBuffer* frame chan)
(if (< frame (AudioBuffer_frames ab))
(begin
(if (= chan 0) (AudioBuffer_set_playhead ab frame))
(pref (AudioBuffer_data ab)
(+ (* frame (AudioBuffer_channels ab)) chan)))
0.0)))