aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-31 20:27:14 -0800
committerChris Robinson <[email protected]>2018-01-31 20:27:14 -0800
commit833eface3875d64274c9b56dd6059535cf510f28 (patch)
tree9d85a03ecbebd0d6c119245fbe64b47a3078be1f /examples
parent7256bc92fa954b6ff313f30694a27b7f47c1589d (diff)
Don't print buffer completed events in alffplay
Diffstat (limited to 'examples')
-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)
{