diff options
author | Chris Robinson <[email protected]> | 2022-04-01 19:13:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-04-01 19:15:16 -0700 |
commit | a731e042cc512d1008415765ab8b4d8114f0399c (patch) | |
tree | 90fb02ef901352f546cdcc95500d749a748171fe /al/buffer.cpp | |
parent | 872c206deb341f8c7e9ee69e8e54e94783585bcd (diff) |
Remove the unused flags parameter from alBufferCallbackSOFT
Diffstat (limited to 'al/buffer.cpp')
-rw-r--r-- | al/buffer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp index 7aa8edfd..13407103 100644 --- a/al/buffer.cpp +++ b/al/buffer.cpp @@ -1584,7 +1584,7 @@ END_API_FUNC AL_API void AL_APIENTRY alBufferCallbackSOFT(ALuint buffer, ALenum format, ALsizei freq, - ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr, ALbitfieldSOFT flags) + ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr) START_API_FUNC { ContextRef context{GetContextRef()}; @@ -1600,8 +1600,6 @@ START_API_FUNC context->setError(AL_INVALID_VALUE, "Invalid sample rate %d", freq); else if UNLIKELY(callback == nullptr) context->setError(AL_INVALID_VALUE, "NULL callback"); - else if UNLIKELY(flags != 0) - context->setError(AL_INVALID_VALUE, "Invalid callback flags 0x%x", flags); else { auto usrfmt = DecomposeUserFormat(format); |