*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401410
This commit is contained in:
parent
08177094b3
commit
d5f983162e
2 changed files with 8 additions and 3 deletions
|
@ -22,6 +22,9 @@
|
||||||
|
|
||||||
/* Try to get a standard set of platform defines */
|
/* Try to get a standard set of platform defines */
|
||||||
|
|
||||||
|
#ifndef _SDL_platform_h
|
||||||
|
#define _SDL_platform_h
|
||||||
|
|
||||||
#if defined(_AIX)
|
#if defined(_AIX)
|
||||||
#undef __AIX__
|
#undef __AIX__
|
||||||
#define __AIX__ 1
|
#define __AIX__ 1
|
||||||
|
@ -102,3 +105,5 @@
|
||||||
#undef __WIN32__
|
#undef __WIN32__
|
||||||
#define __WIN32__ 1
|
#define __WIN32__ 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* _SDL_platform_h */
|
||||||
|
|
|
@ -436,7 +436,7 @@ int SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained)
|
||||||
audio->enabled = 1;
|
audio->enabled = 1;
|
||||||
audio->paused = 1;
|
audio->paused = 1;
|
||||||
|
|
||||||
#if SDL_AUDIO_DRIVER_AHI
|
#if !SDL_AUDIO_DRIVER_AHI
|
||||||
|
|
||||||
/* AmigaOS opens audio inside the main loop */
|
/* AmigaOS opens audio inside the main loop */
|
||||||
audio->opened = audio->OpenAudio(audio, &audio->spec)+1;
|
audio->opened = audio->OpenAudio(audio, &audio->spec)+1;
|
||||||
|
@ -511,7 +511,7 @@ int SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpec *obtained)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SDL_AUDIO_DRIVER_AHI
|
#if !SDL_AUDIO_DRIVER_AHI
|
||||||
/* Start the audio thread if necessary */
|
/* Start the audio thread if necessary */
|
||||||
switch (audio->opened) {
|
switch (audio->opened) {
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -611,7 +611,7 @@ void SDL_AudioQuit(void)
|
||||||
SDL_FreeAudioMem(audio->convert.buf);
|
SDL_FreeAudioMem(audio->convert.buf);
|
||||||
|
|
||||||
}
|
}
|
||||||
#if SDL_AUDIO_DRIVER_AHI
|
#if !SDL_AUDIO_DRIVER_AHI
|
||||||
if ( audio->opened ) {
|
if ( audio->opened ) {
|
||||||
audio->CloseAudio(audio);
|
audio->CloseAudio(audio);
|
||||||
audio->opened = 0;
|
audio->opened = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue