comparison src/audio/SDL_audio.c @ 3139:7f684f249ec9

indent
author Sam Lantinga <slouken@libsdl.org>
date Sat, 23 May 2009 22:41:08 +0000
parents 82e60908fab1
children dc1eb82ffdaa
comparison
equal deleted inserted replaced
3125:d71d8ceda8b3 3139:7f684f249ec9
475 if (stream != device->fake_stream && !device->paused) { 475 if (stream != device->fake_stream && !device->paused) {
476 current_audio.impl.PlayDevice(device); 476 current_audio.impl.PlayDevice(device);
477 /* Wait for an audio buffer to become available */ 477 /* Wait for an audio buffer to become available */
478 current_audio.impl.WaitDevice(device); 478 current_audio.impl.WaitDevice(device);
479 } else { 479 } else {
480 SDL_Delay((device->spec.samples * 1000) / device->spec.freq); 480 SDL_Delay((device->spec.samples * 1000) /
481 device->spec.freq);
481 } 482 }
482 } 483 }
483 484
484 } 485 }
485 } else { 486 } else {
523 if (stream != device->fake_stream && !device->paused) { 524 if (stream != device->fake_stream && !device->paused) {
524 current_audio.impl.PlayDevice(device); 525 current_audio.impl.PlayDevice(device);
525 /* Wait for an audio buffer to become available */ 526 /* Wait for an audio buffer to become available */
526 current_audio.impl.WaitDevice(device); 527 current_audio.impl.WaitDevice(device);
527 } else { 528 } else {
528 SDL_Delay((device->spec.samples * 1000) / device->spec.freq); 529 SDL_Delay((device->spec.samples * 1000) / device->spec.freq);
529 } 530 }
530 } 531 }
531 } 532 }
532 533
533 /* Wait for the audio to drain.. */ 534 /* Wait for the audio to drain.. */