mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
sound change
This commit is contained in:
parent
73c621355f
commit
0985c86608
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user