2 implementations of audio_callback:PaStreamCallback:
#1
/digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm ·
#2
/digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm
;; we need a callback function - which just generates white noise at
;; this stage
(bind-func audio_callback:PaStreamCallback
(lambda (input output frameCount timeInfo statusFlags userData)
(doloop (i (* frameCount 2))
(pset! (convert output float*) i (random 0.1)))
;; to ensure the callback continues to be called
paContinue))