sound change

This commit is contained in:
dborth 2008-09-13 00:47:54 +00:00
parent 73c621355f
commit 0985c86608
2 changed files with 48 additions and 47 deletions

View File

@ -61,7 +61,7 @@ int GCMemROM()
/*** Set internal sound information ***/
FCEUI_Sound(SAMPLERATE);
FCEUI_SetSoundVolume(100); // 0-100
FCEUI_SetSoundQuality(1); // 0 - low, 1 - high
FCEUI_SetSoundQuality(0); // 0 - low, 1 - high
FCEUI_SetLowPass(0);
InitialisePads();

View File

@ -26,7 +26,8 @@ static int whichab = 0; /*** Which Audio Buffer is in use ***/
static int isPlaying; /*** Is Playing ***/
static void AudioSwitchBuffers()
{
if ( buffSize[whichab] ) {
if ( buffSize[whichab] )
{
AUDIO_StopDMA();
AUDIO_InitDMA((u32)audiobuffer[whichab], buffSize[whichab]);
DCFlushRange(audiobuffer[whichab], buffSize[whichab]);
@ -87,7 +88,8 @@ void PlaySound( unsigned int *Buffer, int count )
isWriting = 1;
for ( P = 0; P < count; P++ ) {
for ( P = 0; P < count; P++ )
{
MBuffer[P] = Buffer[P];
}
@ -111,5 +113,4 @@ void PlaySound( unsigned int *Buffer, int count )
}
isWriting = 0;
}