Skip to content

Commit

Permalink
fix: minimise changes in SDL_sound.c
Browse files Browse the repository at this point in the history
  • Loading branch information
superzazu committed Dec 21, 2024
1 parent 58460d5 commit 76da09d
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions src/SDL_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,22 +306,22 @@ static Sound_Sample *alloc_sample(SDL_IOStream *rw, Sound_AudioInfo *desired,
static SDL_INLINE const char *fmt_to_str(Uint16 fmt)
{
switch(fmt) {
case SDL_AUDIO_U8:
return "U8";
case SDL_AUDIO_S8:
return "S8";
case SDL_AUDIO_S16LE:
return "S16LSB";
case SDL_AUDIO_S32LE:
return "S32LSB";
case SDL_AUDIO_F32LE:
return "F32LSB";
case SDL_AUDIO_S16BE:
return "S16MSB";
case SDL_AUDIO_S32BE:
return "S32MSB";
case SDL_AUDIO_F32BE:
return "F32MSB";
case SDL_AUDIO_U8:
return "U8";
case SDL_AUDIO_S8:
return "S8";
case SDL_AUDIO_S16LE:
return "S16LSB";
case SDL_AUDIO_S32LE:
return "S32LSB";
case SDL_AUDIO_F32LE:
return "F32LSB";
case SDL_AUDIO_S16BE:
return "S16MSB";
case SDL_AUDIO_S32BE:
return "S32MSB";
case SDL_AUDIO_F32BE:
return "F32MSB";
} /* switch */
return "Unknown";
} /* fmt_to_str */
Expand Down Expand Up @@ -594,6 +594,7 @@ void Sound_FreeSample(Sound_Sample *sample)
SDL_free(sample);
} /* Sound_FreeSample */


int Sound_SetBufferSize(Sound_Sample *sample, Uint32 newSize)
{
void *newBuf = NULL;
Expand Down

0 comments on commit 76da09d

Please sign in to comment.