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 /examples | |
parent | 872c206deb341f8c7e9ee69e8e54e94783585bcd (diff) |
Remove the unused flags parameter from alBufferCallbackSOFT
Diffstat (limited to 'examples')
-rw-r--r-- | examples/alffplay.cpp | 6 | ||||
-rw-r--r-- | examples/alstreamcb.cpp | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp index c557362a..e191a323 100644 --- a/examples/alffplay.cpp +++ b/examples/alffplay.cpp @@ -78,11 +78,10 @@ extern "C" { #ifdef ALLOW_EXPERIMENTAL_EXTS #ifndef AL_SOFT_callback_buffer #define AL_SOFT_callback_buffer -typedef unsigned int ALbitfieldSOFT; #define AL_BUFFER_CALLBACK_FUNCTION_SOFT 0x19A0 #define AL_BUFFER_CALLBACK_USER_PARAM_SOFT 0x19A1 typedef ALsizei (AL_APIENTRY*ALBUFFERCALLBACKTYPESOFT)(ALvoid *userptr, ALvoid *sampledata, ALsizei numbytes); -typedef void (AL_APIENTRY*LPALBUFFERCALLBACKSOFT)(ALuint buffer, ALenum format, ALsizei freq, ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr, ALbitfieldSOFT flags); +typedef void (AL_APIENTRY*LPALBUFFERCALLBACKSOFT)(ALuint buffer, ALenum format, ALsizei freq, ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr); typedef void (AL_APIENTRY*LPALGETBUFFERPTRSOFT)(ALuint buffer, ALenum param, ALvoid **value); typedef void (AL_APIENTRY*LPALGETBUFFER3PTRSOFT)(ALuint buffer, ALenum param, ALvoid **value1, ALvoid **value2, ALvoid **value3); typedef void (AL_APIENTRY*LPALGETBUFFERPTRVSOFT)(ALuint buffer, ALenum param, ALvoid **values); @@ -1282,8 +1281,7 @@ int AudioState::handler() bool callback_ok{false}; if(alBufferCallbackSOFT) { - alBufferCallbackSOFT(mBuffers[0], mFormat, mCodecCtx->sample_rate, bufferCallbackC, this, - 0); + alBufferCallbackSOFT(mBuffers[0], mFormat, mCodecCtx->sample_rate, bufferCallbackC, this); alSourcei(mSource, AL_BUFFER, static_cast<ALint>(mBuffers[0])); if(alGetError() != AL_NO_ERROR) { diff --git a/examples/alstreamcb.cpp b/examples/alstreamcb.cpp index 424ed635..d37fe118 100644 --- a/examples/alstreamcb.cpp +++ b/examples/alstreamcb.cpp @@ -47,11 +47,10 @@ #ifndef AL_SOFT_callback_buffer #define AL_SOFT_callback_buffer -typedef unsigned int ALbitfieldSOFT; #define AL_BUFFER_CALLBACK_FUNCTION_SOFT 0x19A0 #define AL_BUFFER_CALLBACK_USER_PARAM_SOFT 0x19A1 typedef ALsizei (AL_APIENTRY*LPALBUFFERCALLBACKTYPESOFT)(ALvoid *userptr, ALvoid *sampledata, ALsizei numsamples); -typedef void (AL_APIENTRY*LPALBUFFERCALLBACKSOFT)(ALuint buffer, ALenum format, ALsizei freq, LPALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr, ALbitfieldSOFT flags); +typedef void (AL_APIENTRY*LPALBUFFERCALLBACKSOFT)(ALuint buffer, ALenum format, ALsizei freq, LPALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr); typedef void (AL_APIENTRY*LPALGETBUFFERPTRSOFT)(ALuint buffer, ALenum param, ALvoid **value); typedef void (AL_APIENTRY*LPALGETBUFFER3PTRSOFT)(ALuint buffer, ALenum param, ALvoid **value1, ALvoid **value2, ALvoid **value3); typedef void (AL_APIENTRY*LPALGETBUFFERPTRVSOFT)(ALuint buffer, ALenum param, ALvoid **values); @@ -219,7 +218,7 @@ struct StreamPlayer { bool prepare() { - alBufferCallbackSOFT(mBuffer, mFormat, mSfInfo.samplerate, bufferCallbackC, this, 0); + alBufferCallbackSOFT(mBuffer, mFormat, mSfInfo.samplerate, bufferCallbackC, this); alSourcei(mSource, AL_BUFFER, static_cast<ALint>(mBuffer)); if(ALenum err{alGetError()}) { |