summaryrefslogtreecommitdiff
path: root/src/code/audio_data.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2022-06-19 07:31:08 -0700
committerGitHub <noreply@github.com>2022-06-19 16:31:08 +0200
commit38de9405e65a1af95fac80ae225696638184b22c (patch)
tree639acb9ce3f4b6aebd0fe8fff937ccc111667ba2 /src/code/audio_data.c
parent849fdbf9ea37a69ad6af3bbdc55c07903135dccd (diff)
Restructuring SoundFont Structs (#1277)
* Document fontData relocation * Fix * More cleanup * typo * sample -> sampleHeader * Revert name * Just a little more * Another comment change * Fix Drum * fix * K0BASE * Update relocs * consistency * clearer phrasing * Fix * PR/Discord Suggestions * typo * Revert Sound Font Sample Struct for another PR * Missed a function * Organize structs, tuned samples * New sound effects struct * fix func name * wave samples * consistency * Fix * More suggestions * PR Suggestions * sample bank reloc * Revert header description * better text * SoundFount Relocation: some cleanup (#6) * `fontDataStartAddr` for relocation, `fontData` for reading data (`AudioLoad_RelocateFont`) * Comment "cleanup" in `AudioLoad_RelocateFont` * Comment "cleanup" in `AudioLoad_RelocateSample` * Cleanup cast and compares to 0 (offsets) / NULL (pointers) * Cleanup * soundFont info * Revert waveSamples * cleanup * Plural * PR suggestions * A few name changes and suggestions * small changes * Drop Info on SoundFont * Missed some * One more function change Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'src/code/audio_data.c')
-rw-r--r--src/code/audio_data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/audio_data.c b/src/code/audio_data.c
index ed0ecb699..679f51509 100644
--- a/src/code/audio_data.c
+++ b/src/code/audio_data.c
@@ -543,11 +543,11 @@ u8 gDefaultShortNoteGateTimeTable[] = {
229, 203, 177, 151, 139, 126, 113, 100, 87, 74, 61, 48, 36, 23, 10, 0,
};
-AdsrEnvelope gDefaultEnvelope[] = {
+EnvelopePoint gDefaultEnvelope[] = {
{ 1, 32000 },
{ 1000, 32000 },
- { -1, 0 },
- { 0, 0 },
+ { ADSR_HANG, 0 },
+ { ADSR_DISABLE, 0 },
};
NoteSubEu gZeroNoteSub = { 0 };