in reply to Re^4: win32 sound problem
in thread win32 sound problem
Perhaps it's allocating a buffer internally, and not shrinking it when you load a new sound. Do you get the remains of the first track after the second track plays? (Might be easier to tell if you play a song and then load your track.) If that's the case, it might lead you to a bugfix. Or perhaps load an appropriately long empty file (i.e. silence) before loading your tracks to work around the problem
Finally, the docs show a Play(from, to) method. You might just use that method to play only the track you just loaded/created. It also shows a Reset() method. Perhaps the pointer in the device isn't being reset, so it's loading data into the wrong part of the buffer?
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: win32 sound problem
by spencoid (Acolyte) on Feb 28, 2011 at 03:00 UTC | |
by roboticus (Chancellor) on Feb 28, 2011 at 03:07 UTC | |
by toolic (Bishop) on Feb 28, 2011 at 13:49 UTC |