Mercurial > sdl-ios-xcode
diff src/audio/mint/SDL_mintaudio.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 | 2eca15c3f609 |
children | 12c49532be00 |
line wrap: on
line diff
--- a/src/audio/mint/SDL_mintaudio.c Fri Jul 29 10:59:49 2005 +0000 +++ b/src/audio/mint/SDL_mintaudio.c Sun Aug 07 12:17:28 2005 +0000 @@ -76,7 +76,8 @@ } /* Add a new frequency/clock/predivisor to the current list */ -void SDL_MintAudio_AddFrequency(_THIS, Uint32 frequency, Uint32 clock, Uint32 prediv) +void SDL_MintAudio_AddFrequency(_THIS, Uint32 frequency, Uint32 clock, + Uint32 prediv, int gpio_bits) { int i, p; @@ -94,9 +95,7 @@ /* Put all following ones farer */ if (MINTAUDIO_freqcount>0) { for (i=MINTAUDIO_freqcount; i>p; i--) { - MINTAUDIO_frequencies[i].frequency = MINTAUDIO_frequencies[i-1].frequency; - MINTAUDIO_frequencies[i].masterclock = MINTAUDIO_frequencies[i-1].masterclock; - MINTAUDIO_frequencies[i].predivisor = MINTAUDIO_frequencies[i-1].predivisor; + memcpy(&MINTAUDIO_frequencies[i], &MINTAUDIO_frequencies[i-1], sizeof(mint_frequency_t)); } } @@ -104,6 +103,7 @@ MINTAUDIO_frequencies[p].frequency = frequency; MINTAUDIO_frequencies[p].masterclock = clock; MINTAUDIO_frequencies[p].predivisor = prediv; + MINTAUDIO_frequencies[p].gpio_bits = gpio_bits; MINTAUDIO_freqcount++; }