diff options
author | Chris Robinson <[email protected]> | 2018-01-31 20:27:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-31 20:27:14 -0800 |
commit | 833eface3875d64274c9b56dd6059535cf510f28 (patch) | |
tree | 9d85a03ecbebd0d6c119245fbe64b47a3078be1f /examples/alffplay.cpp | |
parent | 7256bc92fa954b6ff313f30694a27b7f47c1589d (diff) |
Don't print buffer completed events in alffplay
Diffstat (limited to 'examples/alffplay.cpp')
-rw-r--r-- | examples/alffplay.cpp | 6 |
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) { |