[Stk] Audio File Playback Using FileWvIn
valerianmusic at gmail.com
Mon Apr 5 20:48:27 PDT 2010
I'm trying to do simple playback using FileWvIn. When I play files
back using the callback method on a separate thread, I get
inconsistent playback speed, pops and clicks.
I'm already initializing FlieWvIn with a buffer size large enough for
the audio file to be loaded in memory. So normally, there should not
be any file read within the callback function.
Is there a better way to do this? Maybe I should pre-extract the
frames for the entire file and use that in the callback loop?
BTW, I know I should be using a circular buffer for this type of
thing, but my project is due for next week and I don't have time to
- Nick -
More information about the Stk