I've been battling with this for weeks now...how do you reuse an audio queue? I'm trying to modify the AudioPlayer class from SpeakHere so that I can do the following without having to close and reopen the associated sound file:
1. Replay a sound after it's finished playing.
2. Restart a sound in the middle of playing.
This should only require changes to the start and callback methods as far as I can tell (possibly only the start method) but for some reason it's not as straightforward as it seems...I get various audio anomalies depending on when and where I start/stop/flush/reset the queue. (I've tried various combinations of the different methods.)
Has anyone solved this problem already who would be willing to share their solution? Any help would be greatly appreciated, either privately (at this point I'm willing to pay for a working solution) or through this thread.
Craig
1. Replay a sound after it's finished playing.
2. Restart a sound in the middle of playing.
This should only require changes to the start and callback methods as far as I can tell (possibly only the start method) but for some reason it's not as straightforward as it seems...I get various audio anomalies depending on when and where I start/stop/flush/reset the queue. (I've tried various combinations of the different methods.)
Has anyone solved this problem already who would be willing to share their solution? Any help would be greatly appreciated, either privately (at this point I'm willing to pay for a working solution) or through this thread.
Craig