Skip to content

Commit 7cb1c82

Browse files
erysdrensezero
authored andcommitted
Update to newest SDL
1 parent a866fc7 commit 7cb1c82

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

examples/playwave.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static void Usage(char *argv0)
307307
*/
308308
static void flip_sample(Mix_Chunk *wave)
309309
{
310-
Uint16 format;
310+
SDL_AudioFormat format;
311311
int channels, i, incr;
312312
Uint8 *start = wave->abuf;
313313
Uint8 *end = wave->abuf + wave->alen;

include/SDL3_mixer/SDL_mixer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ extern SDL_DECLSPEC void SDLCALL Mix_PauseAudio(int pause_on);
317317
*
318318
* \sa Mix_OpenAudio
319319
*/
320-
extern SDL_DECLSPEC int SDLCALL Mix_QuerySpec(int *frequency, Uint16 *format, int *channels);
320+
extern SDL_DECLSPEC int SDLCALL Mix_QuerySpec(int *frequency, SDL_AudioFormat *format, int *channels);
321321

322322
/**
323323
* Dynamically change the number of channels managed by the mixer.

src/effect_position.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ static position_args *get_position_arg(int channel)
13321332
return pos_args_array[channel];
13331333
}
13341334

1335-
static Mix_EffectFunc_t get_position_effect_func(Uint16 format, int channels)
1335+
static Mix_EffectFunc_t get_position_effect_func(SDL_AudioFormat format, int channels)
13361336
{
13371337
Mix_EffectFunc_t f = NULL;
13381338

@@ -1613,7 +1613,7 @@ int Mix_SetPanning(int channel, Uint8 left, Uint8 right)
16131613
{
16141614
Mix_EffectFunc_t f = NULL;
16151615
int channels;
1616-
Uint16 format;
1616+
SDL_AudioFormat format;
16171617
position_args *args = NULL;
16181618
int retval = 1;
16191619

@@ -1676,7 +1676,7 @@ int Mix_SetPanning(int channel, Uint8 left, Uint8 right)
16761676
int Mix_SetDistance(int channel, Uint8 distance)
16771677
{
16781678
Mix_EffectFunc_t f = NULL;
1679-
Uint16 format;
1679+
SDL_AudioFormat format;
16801680
position_args *args = NULL;
16811681
int channels;
16821682
int retval = 1;
@@ -1721,7 +1721,7 @@ int Mix_SetDistance(int channel, Uint8 distance)
17211721
int Mix_SetPosition(int channel, Sint16 angle, Uint8 distance)
17221722
{
17231723
Mix_EffectFunc_t f = NULL;
1724-
Uint16 format;
1724+
SDL_AudioFormat format;
17251725
int channels;
17261726
position_args *args = NULL;
17271727
Sint16 room_angle = 0;

src/effect_stereoreverse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ int Mix_SetReverseStereo(int channel, int flip)
105105
{
106106
Mix_EffectFunc_t f = NULL;
107107
int channels;
108-
Uint16 format;
108+
SDL_AudioFormat format;
109109

110110
Mix_QuerySpec(NULL, &format, &channels);
111111

src/mixer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ int Mix_AllocateChannels(int numchans)
628628
}
629629

630630
/* Return the actual mixer parameters */
631-
int Mix_QuerySpec(int *frequency, Uint16 *format, int *channels)
631+
int Mix_QuerySpec(int *frequency, SDL_AudioFormat *format, int *channels)
632632
{
633633
if (audio_opened) {
634634
if (frequency) {

0 commit comments

Comments
 (0)