Page 1 of 1

CatchSound(), PlaySound() - Where is the live buffer?

Posted: Tue Apr 16, 2013 11:28 am
by RichardL
PB5.11 provides Get/SetSoundPosition() but it would be really handy if PB could also supply the position of the buffer being used for playing the sound, it would open the path to some neat real-time sound operations.

Does anyone know of a way of finding the live buffer position? It looks like the sound data provided by CatchSound(1,*Header) is copied elsewhere before playing.

RichardL

CatchSound(), PlaySound() - Where is the live buffer? [Solve

Posted: Mon Apr 22, 2013 2:12 pm
by RichardL
I found most of the solution to this problem and have published a stereo sine/square/sawtooth generator with an oscillocope style of display here:

http://www.purebasic.fr/english/viewtop ... 12&t=54421

Richard