[music-dsp] Background thread for sound file playback
cialzdesk at gmail.com
Tue Mar 6 05:33:17 EST 2007
Hi to all,
I'm writing some classes for handling the playback of multichannel sound
files inside a VST plugin.
I have a background thread which can only read frames from a sound file
My IOBridge class has a long playback buffer which lenght is 2 *
LookAheadFrames. LookAheadFrames is how many frames I need to read from
disk any time is needed ( example: 2sec * samplerate )
The host process callback tells the IOBridge to return a multichannel
slice of data to play ( ex: 512 frames ).
My problem is when notify the reader thread (inside IOBridge) for
telling it to begin reading stuff from disk. After reading the first
slice inside the current half of the long playback buffer?
CiAlZ Desk – www.cialzdesk.com <http://www.cialzdesk.com/>
More information about the music-dsp