1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-14 05:19:36 +00:00
oot/src/code/audio_heap.c
zelda2774 c033b4b28e
audio_seqplayer, the easy half (#369)
* func_800E9340

* Audio_SequenceChannelDisable

* Audio_SeqChannelLayerFree

* Audio_SeqChannelLayerDisable

* Rename functions

* Audio_SeqChannelSetLayer

* Move gSequenceChannelNone into gAudioContext

* Audio_SequenceChannelInit

* Name functions

* Audio_M64ReadU8

* Audio_M64ReadS16

* Audio_M64ReadCompressedU16

* Audio_AudioListPopBack

* Audio_AudioListPushBack

* Audio_InitLayerFreelist

* Audio_SequencePlayerDisableAsFinished

* incomplete Audio_SequencePlayerDisable

* Audio_SequenceChannelEnable

* Audio_SequencePlayerDisableChannels

* Audio_SequencePlayerInitChannels

* struct fixes

* func_800E9ED8

* Name more functions

* Audio_SequenceChannelSetVolume

* Audio_SetInstrument

* Audio_GetInstrument

* confirm structs

* Audio_ResetSequencePlayer

* Audio_InitSequencePlayer

* Audio_InitSequencePlayers

* func_800EC734

* Find the right Audio_SoundAlloc

* Prune functions.h

* Move global vars into gAudioContext

* func_800EAEF4

* Audio_SeqChannelLayerProcessScript

* Audio_HandleScriptFlowControl

* func_800E9F64

* func_800EA0C0

* func_800EA440

* func_800EAAE0

* unbreak audio_effects

* Audio_ProcessSequence

* Audio_ProcessSequences

* Some audio_heap struct work and function naming

* Audio_SequencePlayerDisable

* ? instead of ! in z64audio.h

* Revert makefile change

* Formatting, player -> seqPlayerIndex

* Index -> Idx

Co-authored-by: zelda2774 <zelda2774@invalid>
2020-09-01 17:23:30 -04:00

106 lines
3.8 KiB
C

#include <ultra64.h>
#include <global.h>
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DDE20.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DDE3C.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DDF80.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE048.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE12C.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE1B4.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE238.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE258.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE2B0.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_AllocDmaMemory.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE344.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_AllocZeroed.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_Alloc.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_SoundAllocPoolInit.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_PersistentPoolClear.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_TemporaryPoolClear.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE4A0.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DE4B0.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_InitMainPools.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_SessionPoolsInit.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_SeqAndBankPoolInit.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_PersistentPoolsInit.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_TemporaryPoolsInit.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/Audio_AllocBankOrSeq.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF074.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF0CC.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF1D8.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF5AC.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF5DC.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF630.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF688.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF7BC.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF7C4.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF888.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DF8F4.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800DFBF8.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E04E8.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0540.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E05C4.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0634.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E06CC.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0964.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0AD8.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0BB4.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0BF8.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0C80.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0CBC.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0E0C.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0E6C.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0E90.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E0EB4.s")
#pragma GLOBAL_ASM("asm/non_matchings/code/audio_heap/func_800E1148.s")