re-applied the SDL_NewAudioStream deconstification, including to its definition

we should keep this to SDL3 only.
This commit is contained in:
Ozkan Sezer
2022-12-04 20:50:20 +03:00
parent d3ba6529e6
commit d6327a00fb
3 changed files with 13 additions and 13 deletions

View File

@@ -997,12 +997,12 @@ static void SDL_CleanupAudioStreamResampler(SDL_AudioStream *stream)
}
SDL_AudioStream *
SDL_NewAudioStream(const SDL_AudioFormat src_format,
const Uint8 src_channels,
const int src_rate,
const SDL_AudioFormat dst_format,
const Uint8 dst_channels,
const int dst_rate)
SDL_NewAudioStream(SDL_AudioFormat src_format,
Uint8 src_channels,
int src_rate,
SDL_AudioFormat dst_format,
Uint8 dst_channels,
int dst_rate)
{
int packetlen = 4096; /* !!! FIXME: good enough for now. */
Uint8 pre_resample_channels;