mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-29 08:12:54 -04:00
link emusound
This commit is contained in:
+1
-1
@@ -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"),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user