Mercurial > sdl-ios-xcode
comparison src/audio/mint/SDL_mintaudio.h @ 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 | 39b5606fa543 |
children | 12c49532be00 |
comparison
equal
deleted
inserted
replaced
1106:524fd51f5d2c | 1107:856f76a099c7 |
---|---|
40 | 40 |
41 typedef struct { | 41 typedef struct { |
42 Uint32 frequency; | 42 Uint32 frequency; |
43 Uint32 masterclock; | 43 Uint32 masterclock; |
44 Uint32 predivisor; | 44 Uint32 predivisor; |
45 int gpio_bits; /* in case of external clock */ | |
45 } mint_frequency_t; | 46 } mint_frequency_t; |
46 | 47 |
47 struct SDL_PrivateAudioData { | 48 struct SDL_PrivateAudioData { |
48 mint_frequency_t frequencies[MINTAUDIO_maxfreqs]; | 49 mint_frequency_t frequencies[MINTAUDIO_maxfreqs]; |
49 int freq_count; /* Number of frequencies in the array */ | 50 int freq_count; /* Number of frequencies in the array */ |
122 extern cookie_stfa_t *SDL_MintAudio_stfa; | 123 extern cookie_stfa_t *SDL_MintAudio_stfa; |
123 extern unsigned long SDL_MintAudio_clocktics; | 124 extern unsigned long SDL_MintAudio_clocktics; |
124 | 125 |
125 /* Functions */ | 126 /* Functions */ |
126 void SDL_MintAudio_Callback(void); | 127 void SDL_MintAudio_Callback(void); |
127 void SDL_MintAudio_AddFrequency(_THIS, Uint32 frequency, Uint32 clock, Uint32 prediv); | 128 void SDL_MintAudio_AddFrequency(_THIS, Uint32 frequency, Uint32 clock, |
129 Uint32 prediv, int gpio_bits); | |
128 int SDL_MintAudio_SearchFrequency(_THIS, int desired_freq); | 130 int SDL_MintAudio_SearchFrequency(_THIS, int desired_freq); |
129 | 131 |
130 /* ASM interrupt functions */ | 132 /* ASM interrupt functions */ |
131 void SDL_MintAudio_GsxbInterrupt(void); | 133 void SDL_MintAudio_GsxbInterrupt(void); |
132 void SDL_MintAudio_EmptyGsxbInterrupt(void); | 134 void SDL_MintAudio_EmptyGsxbInterrupt(void); |