comparison src/audio/mint/SDL_mintaudio_dma8.c @ 2043:adf732f1f016

Formatting update
author Sam Lantinga <slouken@libsdl.org>
date Sun, 24 Sep 2006 15:56:55 +0000
parents d48ead2d2ba5
children 5f6550e5184f b19680c84cdf
comparison
equal deleted inserted replaced
2042:3908e1f808e1 2043:adf732f1f016
216 Mint_CheckAudio(_THIS, SDL_AudioSpec * spec) 216 Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
217 { 217 {
218 int i, masterprediv, sfreq; 218 int i, masterprediv, sfreq;
219 unsigned long masterclock; 219 unsigned long masterclock;
220 220
221 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ", SDL_AUDIO_BITSIZE(spec->format))); 221 DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",
222 SDL_AUDIO_BITSIZE(spec->format)));
222 DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format))); 223 DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
223 DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format))); 224 DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
224 DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format))); 225 DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
225 DEBUG_PRINT(("channels=%d, ", spec->channels)); 226 DEBUG_PRINT(("channels=%d, ", spec->channels));
226 DEBUG_PRINT(("freq=%d\n", spec->freq)); 227 DEBUG_PRINT(("freq=%d\n", spec->freq));
227 228
228 if (spec->channels > 2) { 229 if (spec->channels > 2) {
229 spec->channels = 2; /* no more than stereo! */ 230 spec->channels = 2; /* no more than stereo! */
230 } 231 }
231 232
232 /* Check formats available */ 233 /* Check formats available */
233 spec->format = AUDIO_S8; 234 spec->format = AUDIO_S8;
234 235
272 #endif 273 #endif
273 274
274 MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq); 275 MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
275 spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency; 276 spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
276 277
277 DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ", SDL_AUDIO_BITSIZE(spec->format))); 278 DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ",
279 SDL_AUDIO_BITSIZE(spec->format)));
278 DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format))); 280 DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
279 DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format))); 281 DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
280 DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format))); 282 DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
281 DEBUG_PRINT(("channels=%d, ", spec->channels)); 283 DEBUG_PRINT(("channels=%d, ", spec->channels));
282 DEBUG_PRINT(("freq=%d\n", spec->freq)); 284 DEBUG_PRINT(("freq=%d\n", spec->freq));