[Openal] streaming reception, audio reminders and holes
Daniel PEACOCK
dpeacock at creativelabs.com
Fri Jul 31 03:17:34 PDT 2009
> if (source)
> {
> // stop audio and clear the buffers
> alSourceStop (source);
> alSourcei (source, AL_BUFFER, 0);
>
> // error cleaning
> alGetError ();
> }
>
> But old audio still remain in the buffers at the next play. Should i
> delete the buffers and recreate them ? Is there a way to get the buffer
> pointer and memset to 0 ? If i close completely the audio device handle
> and reopen it, could it avoid definitely the problem ?
Does this happen with the "Generic Software" and "Generic Hardware"
devices? I seem to recall you have problems with the "Generic Hardware"
device on your PC.
Assuming it happens with both devices ... when you re-start playback are
you re-filling *all* the buffers you use for streaming? Are you flushing
any audio data you may have in your own temporary buffers of data?
It should be possible to fix this without resorting to closing OpenAL down.
You could, for example, delete all the buffers and re-generate them to be
sure nothing is left - but I would imagine that when you re-start you would
need to re-fill all the buffers.
Dan
Creative Labs, UK
More information about the Openal
mailing list