Jarvik7 / fceugc

Automatically exported from code.google.com/p/fceugc
0 stars 0 forks source link

Audio issues in Gamecube #275

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Load any rom and listen the audio.

What is the expected output? What do you see instead?
Correct audio but instead it sounds like it is playing in lower/wrong
frecuency.

Does this issue occur on FCE Ultra for Windows?
No.

What version are you using? On GameCube or Wii?
Gamecube

Are you using the official build (from the downloads page or auto-update)?
Compiled from r462

Please provide any additional information below.
I think that the problem would be fixed just adding the line
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_48KHZ) to the function
'InitialiseAudio' from file 'gcaudio.cpp' like this:

void InitialiseAudio()
{
    #ifdef NO_SOUND
    AUDIO_Init (NULL);
    AUDIO_SetDSPSampleRate(AI_SAMPLERATE_48KHZ);
    AUDIO_RegisterDMACallback(AudioSwitchBuffers);
    #else
    ASND_Init();
    #endif
    memset(soundbuffer, 0, 3840*2);
    memset(mixbuffer, 0, 16000);
}

Original issue reported on code.google.com by luisx86@gmail.com on 26 May 2010 at 9:14

GoogleCodeExporter commented 9 years ago
Good catch! I'll add that in.

Original comment by dborth@gmail.com on 27 May 2010 at 6:30