Closed gonutz closed 5 years ago
In the current SDL_audio.h, line 602, the function SDL_AudioStreamFlush is defined as
SDL_AudioStreamFlush
extern DECLSPEC void SDLCALL SDL_AudioStreamClear(SDL_AudioStream *stream);
with the return type void. In your implementation however, you use its return value to generate an error. How does this even compile? Am I missing something here? Should it not return nothing instead of error?
void
error
duplicate: https://github.com/veandco/go-sdl2/issues/379
Oh I see, closing this one then.
In the current SDL_audio.h, line 602, the function
SDL_AudioStreamFlush
is defined aswith the return type
void
. In your implementation however, you use its return value to generate an error. How does this even compile? Am I missing something here? Should it not return nothing instead oferror
?