aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alffplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/alffplay.cpp')
-rw-r--r--examples/alffplay.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp
index 039f5d68..73c3e028 100644
--- a/examples/alffplay.cpp
+++ b/examples/alffplay.cpp
@@ -684,6 +684,12 @@ void AL_APIENTRY AudioState::EventCallback(ALenum eventType, ALuint object, ALui
{
AudioState *self = reinterpret_cast<AudioState*>(userParam);
+ if(eventType == AL_EVENT_TYPE_BUFFER_COMPLETED_SOFT)
+ {
+ /* TODO: Signal the audio handler to wake up and decode another buffer. */
+ return;
+ }
+
std::cout<< "---- AL Event on AudioState "<<self<<" ----\nEvent: ";
switch(eventType)
{