Skip to content

Commit

Permalink
Removed some new 1.3 symbols from code backported to 1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 3, 2006
1 parent df84641 commit e9c5383
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/audio/amigaos/SDL_ahiaudio.c
Expand Up @@ -220,7 +220,7 @@ static void AHI_CloseAudio(_THIS)

static int AHI_OpenAudio(_THIS, SDL_AudioSpec *spec)
{
SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format);
Uint16 test_format = SDL_FirstAudioFormat(spec->format);
int valid_datatype = 1;

D(bug("AHI opening...\n"));
Expand Down
2 changes: 1 addition & 1 deletion src/audio/baudio/SDL_beaudio.cc
Expand Up @@ -154,7 +154,7 @@ int BE_OpenAudio(_THIS, SDL_AudioSpec *spec)
{
int valid_datatype = 0;
media_raw_audio_format format;
SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format);
Uint16 test_format = SDL_FirstAudioFormat(spec->format);

/* Parse the audio format and fill the Be raw audio format */
memset(&format, '\0', sizeof (media_raw_audio_format));
Expand Down
2 changes: 1 addition & 1 deletion src/audio/dart/SDL_dart.c
Expand Up @@ -75,7 +75,7 @@ LONG APIENTRY DARTEventFunc(ULONG ulStatus,

int DART_OpenAudio(_THIS, SDL_AudioSpec *spec)
{
SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format);
Uint16 test_format = SDL_FirstAudioFormat(spec->format);
int valid_datatype = 0;
MCI_AMP_OPEN_PARMS AmpOpenParms;
MCI_GENERIC_PARMS GenericParms;
Expand Down
2 changes: 1 addition & 1 deletion src/audio/dc/SDL_dcaudio.c
Expand Up @@ -201,7 +201,7 @@ static void DCAUD_CloseAudio(_THIS)

static int DCAUD_OpenAudio(_THIS, SDL_AudioSpec *spec)
{
SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format);
Uint16 test_format = SDL_FirstAudioFormat(spec->format);
int valid_datatype = 0;
while ((!valid_datatype) && (test_format)) {
spec->format = test_format;
Expand Down
2 changes: 1 addition & 1 deletion src/audio/dmedia/SDL_irixaudio.c
Expand Up @@ -141,7 +141,7 @@ static void AL_CloseAudio(_THIS)

static int AL_OpenAudio(_THIS, SDL_AudioSpec * spec)
{
SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format);
Uint16 test_format = SDL_FirstAudioFormat(spec->format);
long width = 0;
long fmt = 0;
int valid = 0;
Expand Down
8 changes: 4 additions & 4 deletions src/audio/mint/SDL_mintaudio_gsxb.c
Expand Up @@ -201,7 +201,7 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec)
{
long snd_format;
int i, resolution, format_signed, format_bigendian;
SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format);
Uint16 test_format = SDL_FirstAudioFormat(spec->format);
int valid_datatype = 0;

resolution = spec->format & 0x00ff;
Expand All @@ -222,9 +222,9 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec)
/* Check formats available */
snd_format = Sndstatus(SND_QUERYFORMATS);
spec->format = test_format;
resolution = SDL_AUDIO_BITSIZE(spec->format);
format_signed = SDL_AUDIO_ISSIGNED(spec->format);
format_bigendian = SDL_AUDIO_ISBIGENDIAN(spec->format);
resolution = spec->format & 0xff;
format_signed = (spec->format & (1<<15));
format_bigendian = (spec->format & (1<<12));
switch (test_format) {
case AUDIO_U8:
case AUDIO_S8:
Expand Down

0 comments on commit e9c5383

Please sign in to comment.