diff options
| author | GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> | 2024-06-19 23:15:58 +0200 |
|---|---|---|
| committer | Eblo <7004497+Eblo@users.noreply.github.com> | 2026-06-25 10:14:39 -0400 |
| commit | ea1427fe88bd3bc0363ee693de867daba9059f41 (patch) | |
| tree | b980f612bf313da42ffadd7f609abffa3ce16304 /mm | |
| parent | 8d46b89394f8f7898975fc96e99fa006c771366f (diff) | |
wiiu: Fix audio
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/include/z64audio.h | 2 | ||||
| -rw-r--r-- | mm/src/audio/lib/playback.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/mm/include/z64audio.h b/mm/include/z64audio.h index 45301da96..d4777beb2 100644 --- a/mm/include/z64audio.h +++ b/mm/include/z64audio.h @@ -1,6 +1,8 @@ #ifndef Z64AUDIO_H #define Z64AUDIO_H +#include <endianness.h> + #include "PR/ultratypes.h" #include "PR/os_voice.h" #include "audiothread_cmd.h" diff --git a/mm/src/audio/lib/playback.c b/mm/src/audio/lib/playback.c index 377e04780..a349540f7 100644 --- a/mm/src/audio/lib/playback.c +++ b/mm/src/audio/lib/playback.c @@ -196,13 +196,14 @@ void AudioPlayback_ProcessNotes(void) { sampleState = &gAudioCtx.sampleStateList[gAudioCtx.sampleStateOffset + i]; playbackState = ¬e->playbackState; if (playbackState->parentLayer != NO_LAYER) { - +#ifndef __WIIU__ // OTRTODO: This skips playback if the pointer is below where memory on the N64 normally would be. // This does not translate well to modern platforms and how they map memory. // Considering that this check is not present in OoT/SoH, we may be able to remove this altogether. if ((uintptr_t)playbackState->parentLayer < 0x7FFFFFFF) { continue; } +#endif if ((note != playbackState->parentLayer->note) && (playbackState->status == PLAYBACK_STATUS_0)) { playbackState->adsr.action.s.release = true; |
