output/openal: use alGetSourcei(AL_BUFFER) to force-unqueue buffers

The implementation of cancel() did not work well: you cannot use
alSourceUnqueueBuffers() to unqueue queued buffers, and our function
openal_unqueue_buffers() left the OpenAL library in a rather undefined
state; nothing was supposed to be queued, but the "filled" variable
was not reset.
This commit is contained in:
Max Kellermann
2011-12-13 21:45:26 +01:00
parent c0070b2f13
commit e735abe334
2 changed files with 5 additions and 14 deletions

1
NEWS
View File

@@ -16,6 +16,7 @@ ver 0.17 (2011/??/??)
- dsdiff: new decoder plugin
* output:
- httpd: support for streaming to a DLNA client
- openal: improve buffer cancellation
- osx: allow user to specify other audio devices
- raop: new output plugin
- shout: add possibility to set url