07-28-2005 01:12 PM
07-29-2005 12:49 PM
08-01-2005 09:45 AM
1. By re-enter the loop I mean that the loop that plays the audio is within a larger loop that controls the application flow (event handling loop as in producer/consumer pattern). So when certain event happens the inner audio loop starts until it finishes the audio output (reading from file) or a stop button is pressed, and then it falls back to the main loop that waits for user events to re-start the inner loop.
2. Buffers are set to 2.
I have played with the number of buffers but it doesn't change the situation (just makes it choppy if I use less buffers). I'll try to isolate the code and display the relevant part if I can since there is a lot of other stuff on the program.
I should mention that the data source comes from data recorded on a datalog file which is resampled. Before the inner loop the file is opened, then read within the loop to generate the output, and finnaly closed after exiting the inner loop. Not sure if that has anything to do with the issue.