diff options
author | Kurausukun <lord.uber1@gmail.com> | 2018-11-05 17:03:10 -0500 |
---|---|---|
committer | Kurausukun <lord.uber1@gmail.com> | 2018-11-05 17:03:10 -0500 |
commit | f2b7c1a6389d41aedec172b89c4bd841cef61da8 (patch) | |
tree | 61a19048242f8371665c60a9a8d1ba1ec2860857 | |
parent | c915e4daa6a9de496d85fa22c102860f8277097a (diff) |
Updated Reduce noise and improve sound quality of music (markdown)
-rw-r--r-- | Reduce-noise-and-improve-sound-quality-of-music.md | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Reduce-noise-and-improve-sound-quality-of-music.md b/Reduce-noise-and-improve-sound-quality-of-music.md index 024210b..0628441 100644 --- a/Reduce-noise-and-improve-sound-quality-of-music.md +++ b/Reduce-noise-and-improve-sound-quality-of-music.md @@ -21,18 +21,32 @@ With the aforementioned changes, it should look like this: BSS_CODE ALIGNED(4) char SoundMainRAM_Buffer[0xC00] = {0}; BSS_CODE ALIGNED(4) u32 hq_buffer_ptr[size] = {0}; ``` -With '[size]' being the size you're wanting. (TODO: List possible sizes) +Here, `[size]` is the length of one frame of audio, which varies by the sample rate you use. Here is a list of the possible sample rates and their corresponding frame sizes: +``` +5734: 0x60 +7884: 0x84 (This mode is not aligned to the buffer length and is not supported by the mixer) +10512: 0xB0 +13379: 0xE0 (This is the default engine rate; without any modifications, this is what the GBA Pokemon games use) +15768: 0x108 +18157: 0x130 +21024: 0x160 +26758: 0x1C0 +31536: 0x210 +36314: 0x260 +40137: 0x2A0 +42048: 0x2C0 +``` Next, remove the following from common_syms/m4a_2.txt: ``` gSoundInfo ``` -Add then the following to the end of sym_ewram.txt: +Add then add the following to the end of sym_ewram.txt: ``` gSoundInfo: .space 0xFB0 ``` -That's the mixer stuff out of the way and if it was done correctly, the game shouldn't be producing as much quantization noise. +That's the mixer stuff out of the way, and if it was done correctly, the game shouldn't be producing as much quantization noise. Next step changing base frequency. |