diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-08-30 23:29:57 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-08-30 23:29:57 +0200 |
| commit | 69027a04e3d2eb10708243295dec3655c4ccdca5 (patch) | |
| tree | 62f03f16d4fab87392757e621b3d394a592b615f /Source/Sfx.c | |
| parent | 0cfdfaf95927f0bc25d34744292c41d0d344c5e2 (diff) | |
| download | airport-69027a04e3d2eb10708243295dec3655c4ccdca5.tar.gz | |
* Minor changes (spaces between "if"/"for"... instructions).
+ Added output ELF file with debugging symbols for nocash.
Diffstat (limited to 'Source/Sfx.c')
| -rw-r--r-- | Source/Sfx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Sfx.c b/Source/Sfx.c index fc6b11c..905cefb 100644 --- a/Source/Sfx.c +++ b/Source/Sfx.c @@ -30,7 +30,7 @@ static uint16_t SfxCddaVolumeReduction; void SfxPlaySound(SsVag * sound) { - if(sound->data_size != 0) + if (sound->data_size != 0) { SsPlayVag(sound, sound->cur_voice, MAX_VOLUME - SfxGlobalVolumeReduction, MAX_VOLUME - SfxGlobalVolumeReduction); } @@ -40,12 +40,12 @@ bool SfxUploadSound(char* file_path, SsVag * vag) { static size_t SPUBytesUsed; - if(SystemLoadFile(file_path) == false) + if (SystemLoadFile(file_path) == false) { return false; } - if(voiceIndex < NUMBER_OF_VOICES) + if (voiceIndex < NUMBER_OF_VOICES) { SsReadVag(vag,SystemGetBufferAddress()); @@ -59,7 +59,7 @@ bool SfxUploadSound(char* file_path, SsVag * vag) SPUBytesUsed += vag->data_size; - if(SPUBytesUsed != 0) + if (SPUBytesUsed != 0) { enum { @@ -102,7 +102,7 @@ void SfxStopMusic(void) CDVol>>=1; SsCdVol(CDVol,CDVol); - while(SystemGetGlobalTimer() < (timer + time_step) ); + while (SystemGetGlobalTimer() < (timer + time_step) ); timer = SystemGetGlobalTimer(); } |
