mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Fix reversed SDL_QueueAudio return value check
This commit is contained in:
parent
b26842cf98
commit
94e06e22fc
@ -112,7 +112,7 @@ AudioDevice::LockHandle AudioDevice::Lock() {
|
||||
|
||||
#ifdef SDL2PP_WITH_2_0_4
|
||||
AudioDevice& AudioDevice::QueueAudio(const void* data, Uint32 len) {
|
||||
if (SDL_QueueAudio(device_id_, data, len) == 0)
|
||||
if (SDL_QueueAudio(device_id_, data, len) != 0)
|
||||
throw Exception("SDL_QueueAudio");
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user