comparison src/audio/SDL_audio.c @ 1406:39ca9a4b22f3

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 09:14:58 +0000
parents d910939febfa
children ceb5c2fec4f1
comparison
equal deleted inserted replaced
1405:983df4f9c1c6 1406:39ca9a4b22f3
434 SDL_memcpy(&audio->spec, desired, sizeof(audio->spec)); 434 SDL_memcpy(&audio->spec, desired, sizeof(audio->spec));
435 audio->convert.needed = 0; 435 audio->convert.needed = 0;
436 audio->enabled = 1; 436 audio->enabled = 1;
437 audio->paused = 1; 437 audio->paused = 1;
438 438
439 #if SDL_AUDIO_DRIVER_AHI 439 #if !SDL_AUDIO_DRIVER_AHI
440 440
441 /* AmigaOS opens audio inside the main loop */ 441 /* AmigaOS opens audio inside the main loop */
442 audio->opened = audio->OpenAudio(audio, &audio->spec)+1; 442 audio->opened = audio->OpenAudio(audio, &audio->spec)+1;
443 443
444 if ( ! audio->opened ) { 444 if ( ! audio->opened ) {
509 return(-1); 509 return(-1);
510 } 510 }
511 } 511 }
512 } 512 }
513 513
514 #if SDL_AUDIO_DRIVER_AHI 514 #if !SDL_AUDIO_DRIVER_AHI
515 /* Start the audio thread if necessary */ 515 /* Start the audio thread if necessary */
516 switch (audio->opened) { 516 switch (audio->opened) {
517 case 1: 517 case 1:
518 /* Start the audio thread */ 518 /* Start the audio thread */
519 #if (defined(__WIN32__) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC) 519 #if (defined(__WIN32__) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
609 } 609 }
610 if ( audio->convert.needed ) { 610 if ( audio->convert.needed ) {
611 SDL_FreeAudioMem(audio->convert.buf); 611 SDL_FreeAudioMem(audio->convert.buf);
612 612
613 } 613 }
614 #if SDL_AUDIO_DRIVER_AHI 614 #if !SDL_AUDIO_DRIVER_AHI
615 if ( audio->opened ) { 615 if ( audio->opened ) {
616 audio->CloseAudio(audio); 616 audio->CloseAudio(audio);
617 audio->opened = 0; 617 audio->opened = 0;
618 } 618 }
619 #endif 619 #endif