XBIOS in interrupt not usable under MiNT
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401096
This commit is contained in:
parent
6ebd3d9b2f
commit
329612713c
3 changed files with 13 additions and 1 deletions
|
@ -204,7 +204,7 @@ VBL timer driver:
|
||||||
|
|
||||||
Audio drivers:
|
Audio drivers:
|
||||||
Cookies _SND, MCSN, STFA and GSXB used to detect supported audio
|
Cookies _SND, MCSN, STFA and GSXB used to detect supported audio
|
||||||
capabilities.
|
capabilities. Note: XBIOS and MCSN drivers can not be used under MiNT.
|
||||||
|
|
||||||
STE, Mega STE, TT:
|
STE, Mega STE, TT:
|
||||||
8 bits DMA (hardware access)
|
8 bits DMA (hardware access)
|
||||||
|
|
|
@ -82,8 +82,14 @@ static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec);
|
||||||
|
|
||||||
static int Audio_Available(void)
|
static int Audio_Available(void)
|
||||||
{
|
{
|
||||||
|
unsigned long dummy;
|
||||||
const char *envr = getenv("SDL_AUDIODRIVER");
|
const char *envr = getenv("SDL_AUDIODRIVER");
|
||||||
|
|
||||||
|
/* We can't use XBIOS in interrupt under MiNT */
|
||||||
|
if (Getcookie(C_MiNT, &dummy) == C_FOUND) {
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
/* Check if user asked a different audio driver */
|
/* Check if user asked a different audio driver */
|
||||||
if ((envr) && (strcmp(envr, MINT_AUDIO_DRIVER_NAME)!=0)) {
|
if ((envr) && (strcmp(envr, MINT_AUDIO_DRIVER_NAME)!=0)) {
|
||||||
DEBUG_PRINT((DEBUG_NAME "user asked a different audio driver\n"));
|
DEBUG_PRINT((DEBUG_NAME "user asked a different audio driver\n"));
|
||||||
|
|
|
@ -82,8 +82,14 @@ static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec);
|
||||||
|
|
||||||
static int Audio_Available(void)
|
static int Audio_Available(void)
|
||||||
{
|
{
|
||||||
|
unsigned long dummy;
|
||||||
const char *envr = getenv("SDL_AUDIODRIVER");
|
const char *envr = getenv("SDL_AUDIODRIVER");
|
||||||
|
|
||||||
|
/* We can't use XBIOS in interrupt under MiNT */
|
||||||
|
if (Getcookie(C_MiNT, &dummy) == C_FOUND) {
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
/* Check if user asked a different audio driver */
|
/* Check if user asked a different audio driver */
|
||||||
if ((envr) && (strcmp(envr, MINT_AUDIO_DRIVER_NAME)!=0)) {
|
if ((envr) && (strcmp(envr, MINT_AUDIO_DRIVER_NAME)!=0)) {
|
||||||
DEBUG_PRINT((DEBUG_NAME "user asked a different audio driver\n"));
|
DEBUG_PRINT((DEBUG_NAME "user asked a different audio driver\n"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue