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

Windows specific forum
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

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

Post 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
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

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

Post 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
Post Reply