link emusound

This commit is contained in:
roeming
2025-03-22 10:58:51 -04:00
parent 2ead77759e
commit 320d02452a
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -734,7 +734,7 @@ config.libs = [
"objects": [
Object(Matching, "jaudio_NES/game/audioheaders.c"),
Object(Matching, "jaudio_NES/game/dummyprobe.c"),
Object(NonMatching, "jaudio_NES/game/emusound.c", extra_cflags=["-O4,s", "-fp_contract on", "-func_align 32"]),
Object(Matching, "jaudio_NES/game/emusound.c", extra_cflags=["-O4,s", "-fp_contract on", "-func_align 32", "-vector on"]),
Object(NonMatching, "jaudio_NES/game/game64.c"),
Object(Matching, "jaudio_NES/game/kappa.c"),
Object(Matching, "jaudio_NES/game/melody.c"),
+4 -2
View File
@@ -615,11 +615,11 @@ void __Sound_Write_MMC5(u16 a, u8 b) {
} break;
case 2: {
pSound->_0C = pBuffer->TimerHigh << 8 | pBuffer->TimerLow;
pSound->_08 = __PitchTo32_HVC_C(pSound->_0C);
pSound->_08 = __PitchTo32_HVC(pSound->_0C);
} break;
case 3: {
pSound->_0C = pBuffer->TimerHigh << 8 | pBuffer->TimerLow;
pSound->_08 = __PitchTo32_HVC_C(pSound->_0C);
pSound->_08 = __PitchTo32_HVC(pSound->_0C);
pSound->_18 = LEN_TABLE_HVC[pBuffer->LengthCounterLow];
pSound->_10 = FRAME_SAMPLE * pSound->_18;
if (!pSound->_00 && !pSound->_3E) {
@@ -1909,9 +1909,11 @@ void Sound_SetMMC(u8 mmcMode) {
Sound_Reset();
}
#pragma force_active on
void Sound_PlayMENUPCM(u8 v) {
SoundP._0D = v;
}
#pragma force_active reset
void __Sound_Write_HVC(u16 index, u8 v) {
sbuffer.buff[index] = v;