Mercurial > sdl-ios-xcode
diff src/audio/mint/SDL_mintaudio_mcsn.c @ 1107:856f76a099c7
Can use both clocks of FDI interface on Falcon, plus digital output
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Sun, 07 Aug 2005 12:17:28 +0000 |
parents | 524fd51f5d2c |
children | 12c49532be00 |
line wrap: on
line diff
--- a/src/audio/mint/SDL_mintaudio_mcsn.c Fri Jul 29 10:59:49 2005 +0000 +++ b/src/audio/mint/SDL_mintaudio_mcsn.c Sun Aug 07 12:17:28 2005 +0000 @@ -233,7 +233,7 @@ case MCSN_ST: spec->channels=1; spec->format=8; /* FIXME: is it signed or unsigned ? */ - SDL_MintAudio_AddFrequency(this, 12500, 0, 0); + SDL_MintAudio_AddFrequency(this, 12500, 0, 0, -1); break; case MCSN_TT: /* Also STE, Mega STE */ spec->format=AUDIO_S8; @@ -244,7 +244,8 @@ masterprediv=MASTERPREDIV_TT; } for (i=0; i<4; i++) { - SDL_MintAudio_AddFrequency(this, masterclock/(masterprediv*(1<<i)), masterclock, 3-i); + SDL_MintAudio_AddFrequency(this, masterclock/(masterprediv*(1<<i)), + masterclock, 3-i, -1); } break; case MCSN_FALCON: /* Also Mac */ @@ -253,11 +254,13 @@ if ((i==6) || (i==8) || (i==10)) { continue; } - SDL_MintAudio_AddFrequency(this, MASTERCLOCK_FALCON1/(MASTERPREDIV_FALCON*(i+1)), CLK25M, i+1); + SDL_MintAudio_AddFrequency(this, MASTERCLOCK_FALCON1/(MASTERPREDIV_FALCON*(i+1)), + CLK25M, i+1, -1); } if (cookie_mcsn->res1 != 0) { for (i=1; i<4; i++) { - SDL_MintAudio_AddFrequency(this, (cookie_mcsn->res1)/(MASTERPREDIV_FALCON*(1<<i)), CLKEXT, (1<<i)-1); + SDL_MintAudio_AddFrequency(this, (cookie_mcsn->res1)/(MASTERPREDIV_FALCON*(1<<i)), + CLKEXT, (1<<i)-1, -1); } } spec->format |= 0x8000; /* Audio is always signed */