For an app written in VB, what is the preferred method for reading small chunks (about 50 ms) of pcm data during playback and manual seek? I’m trying to build a process that can update a waveform window regardless of whether the sound file is playing or paused. ReadData cannot be used, as it interferes with playback. If a callback is needed, would someone post a short or crude code example for me?
[Note: I also cannot use the lock method, because FMOD EX does not support this when the sound file is opened as a stream.]
- stdev asked 14 years ago
Alright, I’ve tried the new GetWaveData; but I am now wondering if the ‘single-channel fetch’ approach can be trusted when the function is called, say, twice in a row.
Imagine, for instance, that I am trying to grab the pcm data for both channels at time T (during playback), so that the data can be averaged. If I call GetWaveData for channel 0 (left), and then call it again for channel 1 (right), is it likely that the two data sets are correctly aligned?
If not, would you consider expanding the function to simultaneously return pcm data for all channels? The pcmData array would then be 2-dimensional: pcmData(i’th channel, j’th sample).
Please login first to submit.