Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
audio.h File Reference

Go to the source code of this file.

Data Structures

union  AmbVoiceStateInfo
 
union  SeqArgs
 
union  VolumeField
 
struct  Fade
 
struct  AlUnkPi
 
struct  AuDelay
 
struct  AuFX
 
struct  AuLowPass
 
struct  AlUnkKappa
 
struct  AuFxBus
 
struct  AuLoadFilter
 
struct  AuResampler
 
struct  AuEnvMixer
 
struct  AuPVoice
 
struct  AuSynDriver
 
struct  SoundSFXEntry
 
struct  EnvelopeData
 
struct  EnvelopeOffset
 
struct  EnvelopePreset
 
struct  Instrument
 
struct  SoundLerp
 
struct  SoundPlayChange
 
struct  SoundPlayer
 
struct  SoundManager90
 
struct  SoundManagerCustomCmdList
 
struct  SoundManager
 
struct  SoundInstance
 
struct  AlternatingSoundSet
 
struct  AuVoice
 
struct  BGMFileInfo
 
struct  BGMHeader
 
struct  BGMDrumInfo
 
struct  BGMInstrumentInfo
 
struct  SBNHeader
 
struct  SEFHeader
 
struct  INITHeader
 
struct  PERHeader
 
struct  PEREntry
 
struct  SBNFileEntry
 
struct  BKHeader
 
struct  InitSongEntry
 
struct  SoundBank
 
struct  AuEffectChange
 
struct  SndGlobalsSub6C
 
struct  AuGlobals
 
struct  BGMPlayerTrack
 
struct  SeqNote
 
struct  BGMPlayer
 
struct  MSEQTrackData
 
struct  MSEQHeader
 
struct  AmbienceTrack
 
struct  AmbienceSavedVoice
 
struct  AmbienceVoiceState
 
struct  AmbiencePlayer
 
struct  AmbienceManager
 
struct  AlUnkGemini
 
struct  ALConfig
 
struct  AmbVoiceStateInfo.__unnamed58__
 
struct  SeqArgs.MasterTempo
 
struct  SeqArgs.MasterVolume
 
struct  SeqArgs.MasterPitchShift
 
struct  SeqArgs.UnkCmdE3
 
struct  SeqArgs.MasterTempoFade
 
struct  SeqArgs.MasterVolumeFade
 
struct  SeqArgs.MasterEffect
 
struct  SeqArgs.TrackOverridePatch
 
struct  SeqArgs.SubTrackVolume
 
struct  SeqArgs.SubTrackPan
 
struct  SeqArgs.SubTrackReverb
 
struct  SeqArgs.SegTrackVolume
 
struct  SeqArgs.SubTrackCoarseTune
 
struct  SeqArgs.SubTrackFineTune
 
struct  SeqArgs.SegTrackTune
 
struct  SeqArgs.TrackTremolo
 
struct  SeqArgs.TrackTremoloSpeed
 
struct  SeqArgs.TrackTremoloTime
 
struct  SeqArgs.UnkCmdF4
 
struct  SeqArgs.SetTrackVoice
 
struct  SeqArgs.TrackVolumeFade
 
struct  SeqArgs.SubTrackReverbType
 
struct  SeqArgs.Jump
 
struct  SeqArgs.EventTrigger
 
struct  SeqArgs.Detour
 
struct  SeqArgs.UnkCmdFF
 
union  Fade.__unnamed86__
 
union  Instrument.__unnamed88__
 
union  SoundPlayChange.__unnamed90__
 
struct  SoundPlayChange.__unnamed90__.__unnamed92__
 
union  SoundManager90.__unnamed94__
 
struct  SoundManager90.__unnamed94__.__unnamed96__
 
union  SBNFileEntry.__unnamed98__
 
struct  SBNFileEntry.__unnamed98__.__unnamed100__
 

Macros

#define NO_INSTRUMENT   ((Instrument*) -1)
 
#define AU_FX_DELAY_COUNT   4
 
#define AU_FX_LENGTH   0xA10
 
#define AU_5750   5750
 
#define SAMPLES   184
 
#define SAMPLE184(delta)   (((delta) + (SAMPLES / 2)) / SAMPLES) * SAMPLES
 
#define FIXED_SAMPLE   SAMPLES
 
#define N_AL_DECODER_IN   0
 
#define N_AL_RESAMPLER_OUT   0
 
#define N_AL_TEMP_0   0
 
#define N_AL_DECODER_OUT   0x170
 
#define N_AL_TEMP_1   0x170
 
#define N_AL_TEMP_2   0x2E0
 
#define N_AL_MAIN_L_OUT   0x4E0
 
#define N_AL_MAIN_R_OUT   0x650
 
#define N_AL_AUX_L_OUT   0x7C0
 
#define N_AL_AUX_R_OUT   0x930
 
#define ALIGN16_(val)   (((val) + 0xF) & 0xFFF0)
 
#define AU_FILE_RELATIVE(base, offset)   ((void*)((s32)(offset) + (s32)(base)))
 
#define AUDIO_HEAP_SIZE   0x56000
 
#define AUDIO_SAMPLES   184
 
#define AUDIO_COMMAND_LIST_BUFFER_SIZE   0x4000
 
#define ADPCMFBYTES   9
 
#define SND_MAX_VOLUME_8   0x7F
 
#define SND_MAX_VOLUME_16   0x7FFF
 
#define BGM_SAMPLE_RATE   156250
 
#define BGM_DEFAULT_TEMPO   15600
 
#define SND_MIN_DURATION   250
 
#define SND_MAX_DURATION   10000
 
#define BGM_MAX_VOLUME   127
 
#define BGM_SEGMENT_LABEL   3
 

Typedefs

typedef s8 UNK_TYPE_08
 
typedef s16 UNK_TYPE_16
 
typedef s32 UNK_TYPE_32
 
typedef void * UNK_TYPE_PTR
 
typedef u8 * AuFilePos
 
typedef u8 * WaveData
 
typedef u32 SegData
 
typedef void(* AuCallback) (void)
 
typedef s32(* ALDMAproc2) (s32 addr, s32 len, void *state, u8 arg3)
 
typedef ALDMAproc2(* ALDMANew2) (void *state)
 
typedef InstrumentInstrumentGroup[16]
 

Enumerations

enum  AuPriority {
  AU_PRIORITY_FREE = 0 , AU_PRIORITY_BGM_PLAYER_MAIN = 1 , AU_PRIORITY_BGM_PLAYER_AUX = 2 , AU_PRIORITY_SFX_MANAGER = 4 ,
  AU_PRIORITY_MSEQ_MANAGER = 6
}
 
enum  AuVoiceEnvelopeFlags { AU_VOICE_ENV_FLAG_STOP = 0x01 , AU_VOICE_ENV_FLAG_HANDLED_VOL_CHANGE = 0x02 , AU_VOICE_ENV_FLAG_KEY_RELEASED = 0x10 , AU_VOICE_ENV_FLAG_VOL_CHANGED = 0x20 }
 
enum  AuVoiceSyncFlags { AU_VOICE_SYNC_FLAG_ALL = 0x02 , AU_VOICE_SYNC_FLAG_PARAMS = 0x04 , AU_VOICE_SYNC_FLAG_PITCH = 0x08 , AU_VOICE_SYNC_FLAG_PAN_FXMIX = 0x10 }
 
enum  AuEffectType {
  AU_FX_NONE = 0 , AU_FX_SMALLROOM = 1 , AU_FX_BIGROOM = 2 , AU_FX_CHORUS = 3 ,
  AU_FX_FLANGE = 4 , AU_FX_ECHO = 5 , AU_FX_CUSTOM_0 = 6 , AU_FX_CUSTOM_1 = 7 ,
  AU_FX_CUSTOM_2 = 8 , AU_FX_CUSTOM_3 = 9 , AU_FX_OTHER_BIGROOM = 10
}
 
enum  BGMPlayerState {
  BGM_PLAY_STATE_IDLE = 0 , BGM_STATE_PLAY_SUBSEG = 1 , BGM_PLAY_STATE_NEXT_SUBSEG = 2 , BGM_PLAY_STATE_INIT = 3 ,
  BGM_PLAY_STATE_STOP = 4
}
 
enum  SegmentControlCommands {
  BGM_SEGMENT_END = 0 , BGM_SEGMENT_SUBSEG = 1 , BGM_SEGMENT_START_LOOP = 3 , BGM_SEGMENT_WAIT = 4 ,
  BGM_SEGMENT_END_LOOP = 5 , BGM_SEGMENT_6 = 6 , BGM_SEGMENT_7 = 7
}
 
enum  FxBus { FX_BUS_BGMA_MAIN = 0 , FX_BUS_SOUND = 1 , FX_BUS_BGMB = 2 , FX_BUS_BGMA_AUX = 3 }
 
enum  EnvelopeCommand {
  ENV_CMD_END_LOOP = 0xFB , ENV_CMD_START_LOOP = 0xFC , ENV_CMD_ADD_MULTIPLIER = 0xFD , ENV_CMD_SET_MULTIPLIER = 0xFE ,
  ENV_CMD_END = 0xFF
}
 
enum  EnvelopeTimeIntervals {
  ENV_TIME_60S = 0 , ENV_TIME_55S = 1 , ENV_TIME_50S = 2 , ENV_TIME_45S = 3 ,
  ENV_TIME_40S = 4 , ENV_TIME_35S = 5 , ENV_TIME_30S = 6 , ENV_TIME_27_5S = 7 ,
  ENV_TIME_25S = 8 , ENV_TIME_22_5S = 9 , ENV_TIME_20S = 10 , ENV_TIME_19S = 11 ,
  ENV_TIME_18S = 12 , ENV_TIME_17S = 13 , ENV_TIME_16S = 14 , ENV_TIME_15S = 15 ,
  ENV_TIME_14S = 16 , ENV_TIME_13S = 17 , ENV_TIME_12S = 18 , ENV_TIME_11S = 19 ,
  ENV_TIME_10S = 20 , ENV_TIME_9S = 21 , ENV_TIME_8S = 22 , ENV_TIME_7S = 23 ,
  ENV_TIME_6S = 24 , ENV_TIME_5S = 25 , ENV_TIME_4_5S = 26 , ENV_TIME_4S = 27 ,
  ENV_TIME_3_5S = 28 , ENV_TIME_3S = 29 , ENV_TIME_2750MS = 30 , ENV_TIME_2500MS = 31 ,
  ENV_TIME_2250MS = 32 , ENV_TIME_2S = 33 , ENV_TIME_1900MS = 34 , ENV_TIME_1800MS = 35 ,
  ENV_TIME_1700MS = 36 , ENV_TIME_1600MS = 37 , ENV_TIME_1500MS = 38 , ENV_TIME_1400MS = 39 ,
  ENV_TIME_1300MS = 40 , ENV_TIME_1200MS = 41 , ENV_TIME_1100MS = 42 , ENV_TIME_1S = 43 ,
  ENV_TIME_950MS = 44 , ENV_TIME_900MS = 45 , ENV_TIME_850MS = 46 , ENV_TIME_800MS = 47 ,
  ENV_TIME_750MS = 48 , ENV_TIME_700MS = 49 , ENV_TIME_650MS = 50 , ENV_TIME_600MS = 51 ,
  ENV_TIME_550MS = 52 , ENV_TIME_500MS = 53 , ENV_TIME_450MS = 54 , ENV_TIME_400MS = 55 ,
  ENV_TIME_375MS = 56 , ENV_TIME_350MS = 57 , ENV_TIME_325MS = 58 , ENV_TIME_300MS = 59 ,
  ENV_TIME_290MS = 60 , ENV_TIME_280MS = 61 , ENV_TIME_270MS = 62 , ENV_TIME_260MS = 63 ,
  ENV_TIME_250MS = 64 , ENV_TIME_240MS = 65 , ENV_TIME_230MS = 66 , ENV_TIME_220MS = 67 ,
  ENV_TIME_210MS = 68 , ENV_TIME_200MS = 69 , ENV_TIME_190MS = 70 , ENV_TIME_180MS = 71 ,
  ENV_TIME_170MS = 72 , ENV_TIME_160MS = 73 , ENV_TIME_150MS = 74 , ENV_TIME_140MS = 75 ,
  ENV_TIME_130MS = 76 , ENV_TIME_120MS = 77 , ENV_TIME_110MS = 78 , ENV_TIME_100MS = 79 ,
  ENV_TIME_16UNITS = 80 , ENV_TIME_14UNITS = 81 , ENV_TIME_12UNITS = 81 , ENV_TIME_11UNITS = 83 ,
  ENV_TIME_10UNITS = 84 , ENV_TIME_9UNITS = 85 , ENV_TIME_8UNITS = 86 , ENV_TIME_7UNITS = 87 ,
  ENV_TIME_6UNITS = 88 , ENV_TIME_5UNITS = 89 , ENV_TIME_4UNITS = 90 , ENV_TIME_3UNITS = 91 ,
  ENV_TIME_2UNITS = 92 , ENV_TIME_1UNITS = 93 , ENV_TIME_0 = 94
}
 
enum  SoundPlayerState { SND_PLAYER_STATE_CONTINUE = 0 , SND_PLAYER_STATE_INIT = 1 }
 
enum  SoundManagerState { SND_MANAGER_STATE_ENABLED = 0 , SND_MANAGER_STATE_DISABLED = 1 }
 
enum  SoundInstanceFlags { SOUND_INSTANCE_FLAG_ACTIVE = 1 , SOUND_INSTANCE_FLAG_POSITION_CHANGED = 2 }
 

Variables

volatile u8 AuSynUseStereo
 
u16 DummyInstrumentPredictor [32]
 
u8 DummyInstrumentBase [190]
 
s32 CUSTOM_SMALL_ROOM_PARAMS []
 
s32 CUSTOM_ECHO_PARAMS_1 []
 
s32 CUSTOM_ECHO_PARAMS_3 []
 
s32 CUSTOM_ECHO_PARAMS_2 []
 
EnvelopePreset DummyInstrumentEnvelope
 
u8 AmbientSoundIDtoMSEQFileIndex []
 
s32 AuEnvelopeIntervals []
 
s32 PreventBGMPlayerUpdate
 
u16 AuAmbiencePlayOnlyIndex
 
AuSynDrivergActiveSynDriverPtr
 
AuSynDrivergSynDriverPtr
 
u8 AuUseGlobalVolume
 
u16 AuGlobalVolume
 
u8 AuSynStereoDirty
 
AuGlobalsgSoundGlobals
 
BGMPlayergBGMPlayerC
 
BGMPlayergBGMPlayerB
 
AmbienceManagergAuAmbienceManager
 
SoundManagergSoundManager
 
BGMPlayergBGMPlayerA
 

Data Structure Documentation

◆ AmbVoiceStateInfo

union AmbVoiceStateInfo
Data Fields
struct AmbVoiceStateInfo.__unnamed58__ __unnamed__
s32 all

◆ SeqArgs

union SeqArgs
Data Fields
u8 raw[4]
struct SeqArgs.MasterTempo MasterTempo
struct SeqArgs.MasterVolume MasterVolume
struct SeqArgs.MasterPitchShift MasterPitchShift
struct SeqArgs.UnkCmdE3 UnkCmdE3
struct SeqArgs.MasterTempoFade MasterTempoFade
struct SeqArgs.MasterVolumeFade MasterVolumeFade
struct SeqArgs.MasterEffect MasterEffect
struct SeqArgs.TrackOverridePatch TrackOverridePatch
struct SeqArgs.SubTrackVolume SubTrackVolume
struct SeqArgs.SubTrackPan SubTrackPan
struct SeqArgs.SubTrackReverb SubTrackReverb
struct SeqArgs.SegTrackVolume SegTrackVolume
struct SeqArgs.SubTrackCoarseTune SubTrackCoarseTune
struct SeqArgs.SubTrackFineTune SubTrackFineTune
struct SeqArgs.SegTrackTune SegTrackTune
struct SeqArgs.TrackTremolo TrackTremolo
struct SeqArgs.TrackTremoloSpeed TrackTremoloSpeed
struct SeqArgs.TrackTremoloTime TrackTremoloTime
struct SeqArgs.UnkCmdF4 UnkCmdF4
struct SeqArgs.SetTrackVoice SetTrackVoice
struct SeqArgs.TrackVolumeFade TrackVolumeFade
struct SeqArgs.SubTrackReverbType SubTrackReverbType
struct SeqArgs.Jump Jump
struct SeqArgs.EventTrigger EventTrigger
struct SeqArgs.Detour Detour
struct SeqArgs.UnkCmdFF UnkCmdFF

◆ VolumeField

union VolumeField
Data Fields
u16 u16
s32 s32

◆ Fade

struct Fade
Data Fields
VolumeField curVolume
s32 fadeStep
s16 targetVolume
s16 fadeTime
union Fade.__unnamed86__ __unnamed__
VolumeField volScale
s32 volScaleStep
s16 targetVolScale
s16 volScaleTime

◆ AlUnkPi

struct AlUnkPi
Data Fields
UNK_TYPE_32 unk_00
UNK_TYPE_32 unk__04
UNK_TYPE_32 unk_08
UNK_TYPE_32 unk_0C

◆ AuDelay

struct AuDelay
Data Fields
u32 input
u32 output
s16 ffcoef
s16 fbcoef
s16 gain
char pad_0E[2]
f32 rsinc
f32 rsval
s32 rsdelta
f32 rsgain
struct AuLowPass * lowpass_20
struct AuLowPass * lowpass_24
struct AuResampler * resampler_28
struct AuResampler * resampler_2C

◆ AuFX

struct AuFX
Data Fields
s16 * base
s16 * input
s32 length
AuDelay * delays
u8 delayCount

◆ AuLowPass

struct AuLowPass
Data Fields
s16 fc
s16 fgain
char pad_04[4]
s16 fccoef[16]
POLEF_STATE * fstate
s32 first

◆ AlUnkKappa

struct AlUnkKappa
Data Fields
UNK_TYPE_PTR unk_00
UNK_TYPE_16 unk__04
s16 unk_06
s16 unk_08
UNK_TYPE_16 unk__0A
AuLowPass * lowpass_0C
AuLowPass * lowpass_10

◆ AuFxBus

struct AuFxBus
Data Fields
u16 gain
char unk_02[0x2]
AuFX * fxL
AuFX * fxR
u8 curEffectType
char unk_0D[0x3]
struct AuPVoice * head
struct AuPVoice * tail

◆ AuLoadFilter

struct AuLoadFilter
Data Fields
ADPCM_STATE * state
ADPCM_STATE * lstate
ALRawLoop loop
struct Instrument * instrument
s32 bookSize
ALDMAproc2 dmaFunc
NUDMAState * dmaState
s32 sample
s32 lastsam
s32 first
s32 memin

◆ AuResampler

struct AuResampler
Data Fields
RESAMPLE_STATE * state
f32 ratio
f32 delta
s32 first

◆ AuEnvMixer

struct AuEnvMixer
Data Fields
ENVMIX_STATE * state
s16 pan
s16 volume
s16 cvolL
s16 cvolR
s16 dryamt
s16 wetamt
s16 lratl
s16 lratm
s16 ltgt
s16 rratl
s16 rratm
s16 rtgt
s32 delta
s32 segEnd
s32 first
s32 motion

◆ AuPVoice

struct AuPVoice
Data Fields
struct AuPVoice * next
AuLoadFilter decoder
AuResampler resampler
AuEnvMixer envMixer
s16 unk_74
s16 unk_76
u8 busId
u8 index
u8 unk_7A[2]

◆ AuSynDriver

struct AuSynDriver
Data Fields
s32 curSamples
s32 unk_04
s32 outputRate
s32 num_pvoice
s32 num_bus
ALDMANew2 dmaNew
ALHeap * heap
AuPVoice * pvoices
AuFxBus * fxBus
s32 * savedMainOut
s32 * savedAuxOut

◆ SoundSFXEntry

struct SoundSFXEntry
Data Fields
u16 soundID
u16 upperSoundID
s16 volume
s16 pitchShift
s8 pan
char unk_9[0x1]

◆ EnvelopeData

struct EnvelopeData
Data Fields
u8 * cmdListPress
u8 * cmdListRelease

◆ EnvelopeOffset

struct EnvelopeOffset
Data Fields
u16 offsetPress
u16 offsetRelease

◆ EnvelopePreset

struct EnvelopePreset
Data Fields
u8 count
char unk_01[3]
EnvelopeOffset offsets[1]

◆ Instrument

struct Instrument
Data Fields
u8 * base
u32 wavDataLength
UNK_PTR loopPredictor
s32 loopStart
s32 loopEnd
s32 loopCount
u16 * predictor
u16 dc_bookSize
u16 keyBase
union Instrument.__unnamed88__ __unnamed__
u8 type
u8 unk_25
s8 unk_26
s8 unk_27
s8 unk_28
s8 unk_29
s8 unk_2A
s8 unk_2B
EnvelopePreset * envelopes

◆ SoundLerp

struct SoundLerp
Data Fields
s32 current
s32 step
s16 time
s16 goal

◆ SoundPlayChange

struct SoundPlayChange
Data Fields
union SoundPlayChange.__unnamed90__ __unnamed__

◆ SoundPlayer

struct SoundPlayer
Data Fields
AuFilePos sefDataReadPos
char pad4[0xC]
EnvelopeData envelope
u8 * envelopCustomPressProfile
Instrument * sfxInstrumentRef
Instrument sfxInstrument
AuFilePos sefReadStart
SoundPlayChange changed
f32 pitchRatio
s16 sfxVolume
s16 alternativeVolume
SoundLerp tuneLerp
SoundLerp volumeLerp
u8 cmdList_mode2[8]
AuFilePos alternativeDataPos
s8 alternativeType
u8 triggers
char unk_86[0x2]
s8 * loopStartPos
u8 loopIterCount
char unk_8D
u16 delay
u16 playLength
s16 coarseTune
s8 fineTune
char unk_05
u16 curSoundID
u8 priority
u8 exclusiveID
u8 sfxParamsFlags
u8 sfxPan
u8 reverb
u8 instrumentIndex
u8 envelopePreset
u8 playVelocity
u8 unk_A0
u8 randomPitch
u8 randomVelocity
s8 unk_A3
s16 masterPitchShift
s16 masterVolume
u8 masterPan
u8 state
char unk_AA[0x2]

◆ SoundManager90

struct SoundManager90
Data Fields
union SoundManager90.__unnamed94__ __unnamed__

◆ SoundManagerCustomCmdList

struct SoundManagerCustomCmdList
Data Fields
u16 data[3]

◆ SoundManager

struct SoundManager
Data Fields
struct AuGlobals * globals
struct AuVoice * curVoice
u8 * sefData
s32 * normalSounds[8]
s32 * extraSounds
s32 playCounter
s32 nextUpdateStep
s32 nextUpdateInterval
s32 nextUpdateCounter
struct Fade fadeInfo
s32 busVolume
s32 randomValue
s32 * customReverbParams[8]
s8 customReverbAmounts[8]
u8 lastCustomEffectIdx
s8 defaultReverbAmt
char unk_8E[0x2]
SoundManager90 bgmSounds[4]
SoundManagerCustomCmdList customCmdList[4]
u16 baseVolume
s16 unk_BA
u8 priority
u8 sfxPlayerSelector
u8 busId
u8 curVoiceIndex
u8 state
char unk_C1[0x1]
SoundSFXEntry soundQueue[16]
s8 unk_162
u8 sfxQueuePosOffset
u8 sfxQueueNextPos
s8 unk_165
char unk_166[0x2]
s32 resetPending
SoundPlayer players[8]

◆ SoundInstance

struct SoundInstance
Data Fields
s32 flags
s32 soundID
s32 sourceFlags
u8 volume
u8 pan
s16 pitchShift
Vec3f pos

◆ AlternatingSoundSet

struct AlternatingSoundSet
Data Fields
s32 * sounds
s16 soundCount
s16 curIndex

◆ AuVoice

struct AuVoice
Data Fields
Instrument * instrument
f32 pitchRatio
s32 delta
s16 p_volume
u8 pan
u8 reverb
u8 busId
char unk_11[0x3]
EnvelopeData envelope
u8 * cmdPtr
s32 unk_20
s32 volChangeTime
s32 timeLeft
f32 rate
s32 volMult
u8 * loopStart
u8 loopCounter
u8 initialAmp
u8 targetAmp
u8 timeIntervalIndex
u8 unk_3C
u8 envelopeFlags
u8 relativeReleaseVolumes
u8 releaseVolumeMult
s16 clientVolume
u8 stopPending
u8 syncFlags
s8 clientPriority
u8 priority
char unk_46[2]

◆ BGMFileInfo

struct BGMFileInfo
Data Fields
u8 numSegments
char pad_11[3]
u16 segments[4]
u16 drums
u16 drumCount
u16 instruments
u16 instrumentCount

◆ BGMHeader

struct BGMHeader
Data Fields
s32 signature
s32 size
s32 name
char pad_C[4]
BGMFileInfo info

◆ BGMDrumInfo

struct BGMDrumInfo
Data Fields
s16 bankPatch
s16 keyBase
u8 volume
s8 pan
s8 reverb
u8 randTune
u8 randVolume
u8 randPan
u8 randReverb
char pad_B[1]

◆ BGMInstrumentInfo

struct BGMInstrumentInfo
Data Fields
u16 bankPatch
u8 volume
s8 pan
s8 reverb
s8 coarseTune
s8 fineTune
char pad_7[1]

◆ AUFileMetadata

struct AUFileMetadata
Data Fields
s32 signature
s32 size

◆ SBNHeader

struct SBNHeader
Data Fields
AUFileMetadata mdata
char unused_08[8]
s32 tableOffset
s32 numEntries
s32 fileSize
s32 versionOffset
char unused_04[4]
s32 INIToffset
char reserved[24]

◆ SEFHeader

struct SEFHeader
Data Fields
AUFileMetadata mdata
s32 unk8
s8 unkC
s8 unkD
u8 hasExtraSection
s8 unkF
u16 sections[8]
u16 section2000

◆ INITHeader

struct INITHeader
Data Fields
AUFileMetadata mdata
u16 entriesOffset
u16 entriesSize
u16 tblOffset
u16 tblSize
u16 shortsOffset
u16 shortsSize
char unk_14[0xC]

◆ PERHeader

struct PERHeader
Data Fields
AUFileMetadata mdata
char unk_08[8]

◆ PEREntry

struct PEREntry
Data Fields
BGMDrumInfo drums[12]

◆ SBNFileEntry

struct SBNFileEntry
Data Fields
s32 offset
union SBNFileEntry.__unnamed98__ __unnamed__

◆ BKHeader

struct BKHeader
Data Fields
u16 signature
char unk_02[2]
s32 size
s32 name
u16 format
char unk_0E[2]
char unk_10[2]
u16 instruments[16]
u16 instrumetsSize
u16 unkStartA
u16 unkSizeA
u16 predictorsStart
u16 predictorsSize
u16 unkStartB
u16 unkSizeB

◆ InitSongEntry

struct InitSongEntry
Data Fields
u16 bgmFileIndex
u16 bkFileIndex[3]

◆ SoundBank

struct SoundBank
Data Fields
char unk_00[0xE]
u8 swizzled
char unk_0F[0x831]

◆ AuEffectChange

struct AuEffectChange
Data Fields
u8 type
u8 changed
char unk_02[2]

◆ SndGlobalsSub6C

struct SndGlobalsSub6C
Data Fields
struct BGMPlayer * bgmPlayer
u8 unk_4
u8 unk_5

◆ AuGlobals

struct AuGlobals
Data Fields
f32 outputRate
Instrument * defaultInstrument
BGMDrumInfo defaultDrumEntry
BGMInstrumentInfo defaultPRGEntry
s32 baseRomOffset
SBNFileEntry * sbnFileList
s32 fileListLength
char unk_28[0x4]
InitSongEntry * songList
s32 songListLength
s32 bkFileListOffset
s32 bkListLength
u16 * mseqFileList
AuEffectChange effectChanges[4]
u8 channelDelayPending
u8 channelDelayBusId
u8 channelDelayTime
u8 channelDelaySide
PEREntry * dataPER
BGMInstrumentInfo * dataPRG
struct BGMHeader * dataBGM[2]
struct MSEQHeader * dataMSEQ[2]
SndGlobalsSub6C unk_globals_6C[1]
struct BGMPlayer * unk_74
struct BGMPlayer * unk_78
s32 unkSongName
s32 unk_80
s32 unkFadeTime
s32 unkFadeStart
s32 unkFadeEnd
MusicEventTrigger * musicEventQueuePos
MusicEventTrigger * musicEventQueue
u32 musicEventQueueCount
s32 flushMusicEventQueue
SEFHeader * dataSEF
AuCallback audioThreadCallbacks[2]
InstrumentGroup instrumentGroupX[1]
InstrumentGroup instrumentGroup3[16]
InstrumentGroup instrumentGroup1[4]
InstrumentGroup instrumentGroup2[16]
InstrumentGroup instrumentGroup4[16]
InstrumentGroup instrumentGroup5[16]
InstrumentGroup instrumentGroup6[4]
InstrumentGroup * instrumentGroups[8]
u8 unk_130C
char unk_130D[3]
SoundBank * banks[3]
char unk_131C[4]
AuVoice voices[24]

◆ BGMPlayerTrack

struct BGMPlayerTrack
Data Fields
AuFilePos bgmReadPos
AuFilePos savedPos
AuFilePos prevReadPos
Instrument * instrument
EnvelopeData envelope
s32 subTrackVolume
s32 subTrackVolumeStep
s32 subTrackVolumeTarget
s32 subTrackVolumeTime
s32 delayTime
s32 unkVolume
s32 unkVolumeStep
s16 unkVolumeTarget
s16 unkVolumeTime
s16 segTrackTune
s16 trackTremoloAmount
char unk_3C[0x2]
s16 detourLength
SoundPlayChange changed
u16 patch
u16 subTrackCoarseTune
s8 subTrackFineTune
s8 segTrackVolume
u8 subTrackPan
u8 subTrackReverb
u8 unk_4C
u8 unk_4D
u8 unk_4E
u8 unk_4F
u8 unk_50
u8 unk_51
u8 unk_52
u8 unk_53
u8 polyphonicIdx
u8 trackTremoloSpeed
u8 trackTremoloTime
u8 unk_57
u8 isDrumTrack
u8 parentTrackIdx
u8 unk_5A
s8 subtrackBusId
u8 index
char unk_5D[0x3]

◆ SeqNote

struct SeqNote
Data Fields
Instrument * ins
f32 pitchRatio
s16 volume
s16 adjustedPitch
s32 noteLength
u16 tremoloAmount
u8 tremoloTime
u8 unk_13
s16 unk_14
u8 noteVelocity
u8 unk_note_17

◆ BGMPlayer

struct BGMPlayer
Data Fields
AuGlobals * globals
SoundManager * soundManager
s32 nextUpdateStep
s32 nextUpdateInterval
s32 nextUpdateCounter
s32 updateCounter
s32 songPlayingCounter
s32 songName
s32 fadeSongName
s32 bgmFileIndex
s32 songID
Fade fadeInfo
s32 busVolume
u8 effectIndices[4]
s32 randomValue1
s32 randomValue2
u16 unk_58
s16 unk_5A
s16 unk_5C
char pad5E[2]
u32 curSegmentID
struct BGMHeader * bgmFile
SegData * segmentReadPos
SegData * segmentStartPos
SegData * subSegmentStartPos
s32 unk_74
BGMDrumInfo * drumsInfo
BGMInstrumentInfo * instrumentsInfo
BGMDrumInfo * drums[12]
s32 masterTempo
s32 masterTempoStep
s32 masterTempoTarget
s32 masterTempoTime
s32 masterVolume
s32 masterVolumeStep
s32 masterVolumeTarget
s32 masterVolumeTime
f32 playbackRate
SeqArgs seqCmdArgs
SegData * segLoopStartLabels[32]
SegData * segActiveLoopEndPos[4]
u8 segLoopCounters[4]
s32 proxMixValue
u8 proxMixID
u8 proxMixVolume
char unk_172[0x2]
s16 unk_174[8][9]
u8 * trackVolsConfig
u16 masterTempoBPM
u16 maxTempo
u16 masterPitchShift
s16 detune
u8 segLoopDepth
u8 unk_211
u8 unk_212[8]
s8 volumeChanged
u8 unk_21B
u8 bgmDrumCount
u8 bgmInstrumentCount
u8 unk_21E
char unk_21F[0x1]
u8 unk_220
u8 masterState
u8 unk_222
u8 unk_223
u8 effectValues[4]
char unk_228[0x2]
u8 unk_22A[8]
u8 bFadeConfigSetsVolume
u8 unk_233
u8 priority
u8 busId
char unk_236[0x2]
s32 unk_238[8]
u8 unk_258
u8 unk_259
u8 unk_25A
u8 unk_25B
BGMPlayerTrack tracks[16]
SeqNote notes[24]

◆ MSEQTrackData

struct MSEQTrackData
Data Fields
u8 trackIndex
u8 type
s16 time
s16 delta
u16 goal

◆ MSEQHeader

struct MSEQHeader
Data Fields
s32 signature
s32 size
s32 name
u8 firstVoiceIdx
u8 trackSettingsCount
u16 trackSettingsOffset
u16 dataStart

◆ AmbienceTrack

struct AmbienceTrack
Data Fields
Instrument * instrument
EnvelopeData envelope
SoundLerp tuneLerp
SoundLerp volumeLerp
s8 pan
s8 reverb
u8 flags
char unk_27[1]

◆ AmbienceSavedVoice

struct AmbienceSavedVoice
Data Fields
u8 trackIndex
u8 tune
s8 volume
char unk_03[1]

◆ AmbienceVoiceState

struct AmbienceVoiceState
Data Fields
AmbVoiceStateInfo info
s16 pitch
s8 volume
u8 isResumable

◆ AmbiencePlayer

struct AmbiencePlayer
Data Fields
MSEQHeader * mseqFile
AuFilePos mseqReadStart
AuFilePos mseqReadPos
AuFilePos loopStartPos[2]
AmbVoiceStateInfo id
s32 delay
s32 unk_1C
s32 mseqName
u8 mode
u8 playState
u8 fadeSettingsType
char unk_27[1]
u16 fadeSettingsTime
u8 fadeSettingsInitial
u8 fadeSettingsGoal
u8 loopCount[2]
char unk_2E[2]
u32 firstVoiceIdx
u32 lastVoiceIdx
s32 fadeVolume
s32 fadeStep
u16 fadeTime
u8 fadeGoal
u8 resetRequired
AmbienceTrack tracks[10]
AmbienceSavedVoice savedVoices[4]

◆ AmbienceManager

struct AmbienceManager
Data Fields
AuGlobals * globals
s32 nextUpdateStep
s32 nextUpdateInterval
s32 nextUpdateCounter
MSEQHeader * mseqFiles[4]
u8 numActivePlayers
u8 loadTracksFadeInfo
u8 priority
u8 busId
AmbiencePlayer players[4]
AmbienceVoiceState voiceStates[16]

◆ AlUnkGemini

struct AlUnkGemini
Data Fields
u16 sound1
u16 sound2
u8 flags

◆ ALConfig

struct ALConfig
Data Fields
s32 num_pvoice
s32 num_bus
s32 outputRate
u8 unk_0C
char unk_0D[3]
void * dmaNew
ALHeap * heap

◆ AmbVoiceStateInfo.__unnamed58__

struct AmbVoiceStateInfo.__unnamed58__
Data Fields
u8 playerIndex
u8 trackIndex
u8 tune
u8 released

◆ SeqArgs.MasterTempo

struct SeqArgs.MasterTempo
Data Fields
u16 value

◆ SeqArgs.MasterVolume

struct SeqArgs.MasterVolume
Data Fields
u8 value

◆ SeqArgs.MasterPitchShift

struct SeqArgs.MasterPitchShift
Data Fields
u8 cent

◆ SeqArgs.UnkCmdE3

struct SeqArgs.UnkCmdE3
Data Fields
u8 effectType

◆ SeqArgs.MasterTempoFade

struct SeqArgs.MasterTempoFade
Data Fields
u16 time
u16 value

◆ SeqArgs.MasterVolumeFade

struct SeqArgs.MasterVolumeFade
Data Fields
u16 time
u8 value

◆ SeqArgs.MasterEffect

struct SeqArgs.MasterEffect
Data Fields
u8 index
u8 value

◆ SeqArgs.TrackOverridePatch

struct SeqArgs.TrackOverridePatch
Data Fields
u8 bank
u8 patch

◆ SeqArgs.SubTrackVolume

struct SeqArgs.SubTrackVolume
Data Fields
u8 value

◆ SeqArgs.SubTrackPan

struct SeqArgs.SubTrackPan
Data Fields
u8 value

◆ SeqArgs.SubTrackReverb

struct SeqArgs.SubTrackReverb
Data Fields
u8 value

◆ SeqArgs.SegTrackVolume

struct SeqArgs.SegTrackVolume
Data Fields
u8 value

◆ SeqArgs.SubTrackCoarseTune

struct SeqArgs.SubTrackCoarseTune
Data Fields
u8 cent

◆ SeqArgs.SubTrackFineTune

struct SeqArgs.SubTrackFineTune
Data Fields
u8 value

◆ SeqArgs.SegTrackTune

struct SeqArgs.SegTrackTune
Data Fields
u16 value

◆ SeqArgs.TrackTremolo

struct SeqArgs.TrackTremolo
Data Fields
u8 amount
u8 speed
u8 time

◆ SeqArgs.TrackTremoloSpeed

struct SeqArgs.TrackTremoloSpeed
Data Fields
u8 value

◆ SeqArgs.TrackTremoloTime

struct SeqArgs.TrackTremoloTime
Data Fields
u8 time

◆ SeqArgs.UnkCmdF4

struct SeqArgs.UnkCmdF4
Data Fields
u8 pan0
u8 pan1

◆ SeqArgs.SetTrackVoice

struct SeqArgs.SetTrackVoice
Data Fields
u8 index

◆ SeqArgs.TrackVolumeFade

struct SeqArgs.TrackVolumeFade
Data Fields
u16 time
u8 value

◆ SeqArgs.SubTrackReverbType

struct SeqArgs.SubTrackReverbType
Data Fields
u8 index

◆ SeqArgs.Jump

struct SeqArgs.Jump
Data Fields
u16 unk_00
u8 unk_02

◆ SeqArgs.EventTrigger

struct SeqArgs.EventTrigger
Data Fields
u32 eventInfo

◆ SeqArgs.Detour

struct SeqArgs.Detour
Data Fields
u16 offset
u8 length

◆ SeqArgs.UnkCmdFF

struct SeqArgs.UnkCmdFF
Data Fields
u8 unk_00
u8 unk_01
u8 unk_02

◆ Fade.__unnamed86__

union Fade.__unnamed86__
Data Fields
AuCallback onCompleteCallback
s32 variation

◆ Instrument.__unnamed88__

union Instrument.__unnamed88__
Data Fields
f32 pitchRatio
s32 outputRate

◆ SoundPlayChange.__unnamed90__

union SoundPlayChange.__unnamed90__
Data Fields
u32 all
struct SoundPlayChange.__unnamed90__.__unnamed92__ __unnamed__

◆ SoundPlayChange.__unnamed90__.__unnamed92__

struct SoundPlayChange.__unnamed90__.__unnamed92__
Data Fields
u8 tune
u8 volume
u8 pan
u8 reverb

◆ SoundManager90.__unnamed94__

union SoundManager90.__unnamed94__
Data Fields
s32 s32
struct SoundManager90.__unnamed94__.__unnamed96__ __unnamed__

◆ SoundManager90.__unnamed94__.__unnamed96__

struct SoundManager90.__unnamed94__.__unnamed96__
Data Fields
u8 unk_0
u8 unk_1
u8 unk_2
u8 volume

◆ SBNFileEntry.__unnamed98__

union SBNFileEntry.__unnamed98__
Data Fields
u32 data
struct SBNFileEntry.__unnamed98__.__unnamed100__ __unnamed__

◆ SBNFileEntry.__unnamed98__.__unnamed100__

struct SBNFileEntry.__unnamed98__.__unnamed100__
Data Fields
s8 fmt
UNK_TYPE_08 unk__05
s16 size

Macro Definition Documentation

◆ NO_INSTRUMENT

#define NO_INSTRUMENT   ((Instrument*) -1)

Definition at line 17 of file audio.h.

Referenced by au_bgm_player_initialize().

◆ AU_FX_DELAY_COUNT

#define AU_FX_DELAY_COUNT   4

Definition at line 19 of file audio.h.

Referenced by func_80058E84().

◆ AU_FX_LENGTH

#define AU_FX_LENGTH   0xA10

Definition at line 20 of file audio.h.

Referenced by func_80058E84(), and func_8005904C().

◆ AU_5750

#define AU_5750   5750

◆ SAMPLES

#define SAMPLES   184

Definition at line 24 of file audio.h.

◆ SAMPLE184

#define SAMPLE184 ( delta)    (((delta) + (SAMPLES / 2)) / SAMPLES) * SAMPLES

Definition at line 25 of file audio.h.

◆ FIXED_SAMPLE

#define FIXED_SAMPLE   SAMPLES

Definition at line 26 of file audio.h.

Referenced by au_pull_fx().

◆ N_AL_DECODER_IN

#define N_AL_DECODER_IN   0

Definition at line 28 of file audio.h.

Referenced by au_pull_voice().

◆ N_AL_RESAMPLER_OUT

#define N_AL_RESAMPLER_OUT   0

Definition at line 29 of file audio.h.

◆ N_AL_TEMP_0

#define N_AL_TEMP_0   0

Definition at line 30 of file audio.h.

Referenced by au_pull_fx().

◆ N_AL_DECODER_OUT

#define N_AL_DECODER_OUT   0x170

Definition at line 31 of file audio.h.

Referenced by au_pull_voice().

◆ N_AL_TEMP_1

#define N_AL_TEMP_1   0x170

Definition at line 32 of file audio.h.

Referenced by au_pull_fx().

◆ N_AL_TEMP_2

#define N_AL_TEMP_2   0x2E0

Definition at line 33 of file audio.h.

Referenced by au_pull_fx().

◆ N_AL_MAIN_L_OUT

#define N_AL_MAIN_L_OUT   0x4E0

Definition at line 34 of file audio.h.

Referenced by alAudioFrame().

◆ N_AL_MAIN_R_OUT

#define N_AL_MAIN_R_OUT   0x650

Definition at line 35 of file audio.h.

Referenced by alAudioFrame().

◆ N_AL_AUX_L_OUT

#define N_AL_AUX_L_OUT   0x7C0

Definition at line 36 of file audio.h.

Referenced by alAudioFrame().

◆ N_AL_AUX_R_OUT

#define N_AL_AUX_R_OUT   0x930

Definition at line 37 of file audio.h.

Referenced by alAudioFrame().

◆ ALIGN16_

#define ALIGN16_ ( val)    (((val) + 0xF) & 0xFFF0)

Definition at line 39 of file audio.h.

Referenced by au_load_BK_to_bank().

◆ AU_FILE_RELATIVE

◆ AUDIO_HEAP_SIZE

#define AUDIO_HEAP_SIZE   0x56000

Definition at line 42 of file audio.h.

Referenced by create_audio_system().

◆ AUDIO_SAMPLES

◆ AUDIO_COMMAND_LIST_BUFFER_SIZE

#define AUDIO_COMMAND_LIST_BUFFER_SIZE   0x4000

Definition at line 45 of file audio.h.

Referenced by create_audio_system().

◆ ADPCMFBYTES

#define ADPCMFBYTES   9

Definition at line 47 of file audio.h.

Referenced by au_pull_voice(), au_syn_set_wavetable(), and au_syn_start_voice_params().

◆ SND_MAX_VOLUME_8

#define SND_MAX_VOLUME_8   0x7F

Definition at line 49 of file audio.h.

Referenced by au_amb_resume(), and au_amb_set_volume().

◆ SND_MAX_VOLUME_16

#define SND_MAX_VOLUME_16   0x7FFF

Definition at line 50 of file audio.h.

◆ BGM_SAMPLE_RATE

#define BGM_SAMPLE_RATE   156250

◆ BGM_DEFAULT_TEMPO

#define BGM_DEFAULT_TEMPO   15600

Definition at line 53 of file audio.h.

Referenced by au_bgm_player_init(), and au_bgm_player_initialize().

◆ SND_MIN_DURATION

#define SND_MIN_DURATION   250

◆ SND_MAX_DURATION

#define SND_MAX_DURATION   10000

◆ BGM_MAX_VOLUME

#define BGM_MAX_VOLUME   127

Definition at line 58 of file audio.h.

Referenced by func_8004DE2C().

◆ BGM_SEGMENT_LABEL

#define BGM_SEGMENT_LABEL   3

Definition at line 60 of file audio.h.

Referenced by au_bgm_player_initialize().

Typedef Documentation

◆ UNK_TYPE_08

typedef s8 UNK_TYPE_08

Definition at line 9 of file audio.h.

◆ UNK_TYPE_16

typedef s16 UNK_TYPE_16

Definition at line 10 of file audio.h.

◆ UNK_TYPE_32

typedef s32 UNK_TYPE_32

Definition at line 11 of file audio.h.

◆ UNK_TYPE_PTR

typedef void* UNK_TYPE_PTR

Definition at line 12 of file audio.h.

◆ AuFilePos

typedef u8* AuFilePos

Definition at line 14 of file audio.h.

◆ WaveData

typedef u8* WaveData

Definition at line 15 of file audio.h.

◆ SegData

typedef u32 SegData

Definition at line 62 of file audio.h.

◆ AuCallback

typedef void(* AuCallback) (void)

Definition at line 260 of file audio.h.

◆ ALDMAproc2

typedef s32(* ALDMAproc2) (s32 addr, s32 len, void *state, u8 arg3)

Definition at line 448 of file audio.h.

◆ ALDMANew2

typedef ALDMAproc2(* ALDMANew2) (void *state)

Definition at line 449 of file audio.h.

◆ InstrumentGroup

typedef Instrument* InstrumentGroup[16]

Definition at line 574 of file audio.h.

Enumeration Type Documentation

◆ AuPriority

enum AuPriority
Enumerator
AU_PRIORITY_FREE 
AU_PRIORITY_BGM_PLAYER_MAIN 
AU_PRIORITY_BGM_PLAYER_AUX 
AU_PRIORITY_SFX_MANAGER 
AU_PRIORITY_MSEQ_MANAGER 

Definition at line 64 of file audio.h.

64 {
AuPriority
Definition audio.h:64
@ AU_PRIORITY_BGM_PLAYER_MAIN
Definition audio.h:66
@ AU_PRIORITY_MSEQ_MANAGER
Definition audio.h:69
@ AU_PRIORITY_FREE
Definition audio.h:65
@ AU_PRIORITY_SFX_MANAGER
Definition audio.h:68
@ AU_PRIORITY_BGM_PLAYER_AUX
Definition audio.h:67

◆ AuVoiceEnvelopeFlags

Enumerator
AU_VOICE_ENV_FLAG_STOP 
AU_VOICE_ENV_FLAG_HANDLED_VOL_CHANGE 
AU_VOICE_ENV_FLAG_KEY_RELEASED 
AU_VOICE_ENV_FLAG_VOL_CHANGED 

Definition at line 72 of file audio.h.

72 {
77};
@ AU_VOICE_ENV_FLAG_KEY_RELEASED
Definition audio.h:75
@ AU_VOICE_ENV_FLAG_STOP
Definition audio.h:73
@ AU_VOICE_ENV_FLAG_VOL_CHANGED
Definition audio.h:76
@ AU_VOICE_ENV_FLAG_HANDLED_VOL_CHANGE
Definition audio.h:74

◆ AuVoiceSyncFlags

Enumerator
AU_VOICE_SYNC_FLAG_ALL 
AU_VOICE_SYNC_FLAG_PARAMS 
AU_VOICE_SYNC_FLAG_PITCH 
AU_VOICE_SYNC_FLAG_PAN_FXMIX 

Definition at line 79 of file audio.h.

79 {
84};
@ AU_VOICE_SYNC_FLAG_PARAMS
Definition audio.h:81
@ AU_VOICE_SYNC_FLAG_PAN_FXMIX
Definition audio.h:83
@ AU_VOICE_SYNC_FLAG_PITCH
Definition audio.h:82
@ AU_VOICE_SYNC_FLAG_ALL
Definition audio.h:80

◆ AuEffectType

Enumerator
AU_FX_NONE 
AU_FX_SMALLROOM 
AU_FX_BIGROOM 
AU_FX_CHORUS 
AU_FX_FLANGE 
AU_FX_ECHO 
AU_FX_CUSTOM_0 
AU_FX_CUSTOM_1 
AU_FX_CUSTOM_2 
AU_FX_CUSTOM_3 
AU_FX_OTHER_BIGROOM 

Definition at line 86 of file audio.h.

86 {
87 AU_FX_NONE = 0,
89 AU_FX_BIGROOM = 2,
90 AU_FX_CHORUS = 3,
91 AU_FX_FLANGE = 4,
92 AU_FX_ECHO = 5,
AuEffectType
Definition audio.h:86
@ AU_FX_CUSTOM_3
Definition audio.h:96
@ AU_FX_FLANGE
Definition audio.h:91
@ AU_FX_CUSTOM_2
Definition audio.h:95
@ AU_FX_CUSTOM_1
Definition audio.h:94
@ AU_FX_ECHO
Definition audio.h:92
@ AU_FX_CHORUS
Definition audio.h:90
@ AU_FX_SMALLROOM
Definition audio.h:88
@ AU_FX_OTHER_BIGROOM
Definition audio.h:97
@ AU_FX_BIGROOM
Definition audio.h:89
@ AU_FX_NONE
Definition audio.h:87
@ AU_FX_CUSTOM_0
Definition audio.h:93

◆ BGMPlayerState

Enumerator
BGM_PLAY_STATE_IDLE 
BGM_STATE_PLAY_SUBSEG 
BGM_PLAY_STATE_NEXT_SUBSEG 
BGM_PLAY_STATE_INIT 
BGM_PLAY_STATE_STOP 

Definition at line 100 of file audio.h.

100 {
BGMPlayerState
Definition audio.h:100
@ BGM_PLAY_STATE_IDLE
Definition audio.h:101
@ BGM_PLAY_STATE_STOP
Definition audio.h:105
@ BGM_PLAY_STATE_NEXT_SUBSEG
Definition audio.h:103
@ BGM_STATE_PLAY_SUBSEG
Definition audio.h:102
@ BGM_PLAY_STATE_INIT
Definition audio.h:104

◆ SegmentControlCommands

Enumerator
BGM_SEGMENT_END 
BGM_SEGMENT_SUBSEG 
BGM_SEGMENT_START_LOOP 
BGM_SEGMENT_WAIT 
BGM_SEGMENT_END_LOOP 
BGM_SEGMENT_6 
BGM_SEGMENT_7 

Definition at line 108 of file audio.h.

108 {
109 BGM_SEGMENT_END = 0,
114 BGM_SEGMENT_6 = 6,
115 BGM_SEGMENT_7 = 7
SegmentControlCommands
Definition audio.h:108
@ BGM_SEGMENT_START_LOOP
Definition audio.h:111
@ BGM_SEGMENT_6
Definition audio.h:114
@ BGM_SEGMENT_END_LOOP
Definition audio.h:113
@ BGM_SEGMENT_SUBSEG
Definition audio.h:110
@ BGM_SEGMENT_END
Definition audio.h:109
@ BGM_SEGMENT_7
Definition audio.h:115
@ BGM_SEGMENT_WAIT
Definition audio.h:112

◆ FxBus

enum FxBus
Enumerator
FX_BUS_BGMA_MAIN 
FX_BUS_SOUND 
FX_BUS_BGMB 
FX_BUS_BGMA_AUX 

Definition at line 118 of file audio.h.

118 {
120 FX_BUS_SOUND = 1,
121 FX_BUS_BGMB = 2,
122 FX_BUS_BGMA_AUX = 3,
123} FxBus;
FxBus
Definition audio.h:118
@ FX_BUS_BGMA_MAIN
Definition audio.h:119
@ FX_BUS_BGMA_AUX
Definition audio.h:122
@ FX_BUS_SOUND
Definition audio.h:120
@ FX_BUS_BGMB
Definition audio.h:121

◆ EnvelopeCommand

Enumerator
ENV_CMD_END_LOOP 
ENV_CMD_START_LOOP 
ENV_CMD_ADD_MULTIPLIER 
ENV_CMD_SET_MULTIPLIER 
ENV_CMD_END 

Definition at line 125 of file audio.h.

125 {
126 ENV_CMD_END_LOOP = 0xFB,
127 ENV_CMD_START_LOOP = 0xFC,
130 ENV_CMD_END = 0xFF,
EnvelopeCommand
Definition audio.h:125
@ ENV_CMD_END
Definition audio.h:130
@ ENV_CMD_SET_MULTIPLIER
Definition audio.h:129
@ ENV_CMD_ADD_MULTIPLIER
Definition audio.h:128
@ ENV_CMD_START_LOOP
Definition audio.h:127
@ ENV_CMD_END_LOOP
Definition audio.h:126

◆ EnvelopeTimeIntervals

Enumerator
ENV_TIME_60S 
ENV_TIME_55S 
ENV_TIME_50S 
ENV_TIME_45S 
ENV_TIME_40S 
ENV_TIME_35S 
ENV_TIME_30S 
ENV_TIME_27_5S 
ENV_TIME_25S 
ENV_TIME_22_5S 
ENV_TIME_20S 
ENV_TIME_19S 
ENV_TIME_18S 
ENV_TIME_17S 
ENV_TIME_16S 
ENV_TIME_15S 
ENV_TIME_14S 
ENV_TIME_13S 
ENV_TIME_12S 
ENV_TIME_11S 
ENV_TIME_10S 
ENV_TIME_9S 
ENV_TIME_8S 
ENV_TIME_7S 
ENV_TIME_6S 
ENV_TIME_5S 
ENV_TIME_4_5S 
ENV_TIME_4S 
ENV_TIME_3_5S 
ENV_TIME_3S 
ENV_TIME_2750MS 
ENV_TIME_2500MS 
ENV_TIME_2250MS 
ENV_TIME_2S 
ENV_TIME_1900MS 
ENV_TIME_1800MS 
ENV_TIME_1700MS 
ENV_TIME_1600MS 
ENV_TIME_1500MS 
ENV_TIME_1400MS 
ENV_TIME_1300MS 
ENV_TIME_1200MS 
ENV_TIME_1100MS 
ENV_TIME_1S 
ENV_TIME_950MS 
ENV_TIME_900MS 
ENV_TIME_850MS 
ENV_TIME_800MS 
ENV_TIME_750MS 
ENV_TIME_700MS 
ENV_TIME_650MS 
ENV_TIME_600MS 
ENV_TIME_550MS 
ENV_TIME_500MS 
ENV_TIME_450MS 
ENV_TIME_400MS 
ENV_TIME_375MS 
ENV_TIME_350MS 
ENV_TIME_325MS 
ENV_TIME_300MS 
ENV_TIME_290MS 
ENV_TIME_280MS 
ENV_TIME_270MS 
ENV_TIME_260MS 
ENV_TIME_250MS 
ENV_TIME_240MS 
ENV_TIME_230MS 
ENV_TIME_220MS 
ENV_TIME_210MS 
ENV_TIME_200MS 
ENV_TIME_190MS 
ENV_TIME_180MS 
ENV_TIME_170MS 
ENV_TIME_160MS 
ENV_TIME_150MS 
ENV_TIME_140MS 
ENV_TIME_130MS 
ENV_TIME_120MS 
ENV_TIME_110MS 
ENV_TIME_100MS 
ENV_TIME_16UNITS 
ENV_TIME_14UNITS 
ENV_TIME_12UNITS 
ENV_TIME_11UNITS 
ENV_TIME_10UNITS 
ENV_TIME_9UNITS 
ENV_TIME_8UNITS 
ENV_TIME_7UNITS 
ENV_TIME_6UNITS 
ENV_TIME_5UNITS 
ENV_TIME_4UNITS 
ENV_TIME_3UNITS 
ENV_TIME_2UNITS 
ENV_TIME_1UNITS 
ENV_TIME_0 

Definition at line 133 of file audio.h.

133 {
134 ENV_TIME_60S = 0,
135 ENV_TIME_55S = 1,
136 ENV_TIME_50S = 2,
137 ENV_TIME_45S = 3,
138 ENV_TIME_40S = 4,
139 ENV_TIME_35S = 5,
140 ENV_TIME_30S = 6,
141 ENV_TIME_27_5S = 7,
142 ENV_TIME_25S = 8,
143 ENV_TIME_22_5S = 9,
144 ENV_TIME_20S = 10,
145 ENV_TIME_19S = 11,
146 ENV_TIME_18S = 12,
147 ENV_TIME_17S = 13,
148 ENV_TIME_16S = 14,
149 ENV_TIME_15S = 15,
150 ENV_TIME_14S = 16,
151 ENV_TIME_13S = 17,
152 ENV_TIME_12S = 18,
153 ENV_TIME_11S = 19,
154 ENV_TIME_10S = 20,
155 ENV_TIME_9S = 21,
156 ENV_TIME_8S = 22,
157 ENV_TIME_7S = 23,
158 ENV_TIME_6S = 24,
159 ENV_TIME_5S = 25,
160 ENV_TIME_4_5S = 26,
161 ENV_TIME_4S = 27,
162 ENV_TIME_3_5S = 28,
163 ENV_TIME_3S = 29,
164 ENV_TIME_2750MS = 30,
165 ENV_TIME_2500MS = 31,
166 ENV_TIME_2250MS = 32,
167 ENV_TIME_2S = 33,
168 ENV_TIME_1900MS = 34,
169 ENV_TIME_1800MS = 35,
170 ENV_TIME_1700MS = 36,
171 ENV_TIME_1600MS = 37,
172 ENV_TIME_1500MS = 38,
173 ENV_TIME_1400MS = 39,
174 ENV_TIME_1300MS = 40,
175 ENV_TIME_1200MS = 41,
176 ENV_TIME_1100MS = 42,
177 ENV_TIME_1S = 43,
178 ENV_TIME_950MS = 44,
179 ENV_TIME_900MS = 45,
180 ENV_TIME_850MS = 46,
181 ENV_TIME_800MS = 47,
182 ENV_TIME_750MS = 48,
183 ENV_TIME_700MS = 49,
184 ENV_TIME_650MS = 50,
185 ENV_TIME_600MS = 51,
186 ENV_TIME_550MS = 52,
187 ENV_TIME_500MS = 53,
188 ENV_TIME_450MS = 54,
189 ENV_TIME_400MS = 55,
190 ENV_TIME_375MS = 56,
191 ENV_TIME_350MS = 57,
192 ENV_TIME_325MS = 58,
193 ENV_TIME_300MS = 59,
194 ENV_TIME_290MS = 60,
195 ENV_TIME_280MS = 61,
196 ENV_TIME_270MS = 62,
197 ENV_TIME_260MS = 63,
198 ENV_TIME_250MS = 64,
199 ENV_TIME_240MS = 65,
200 ENV_TIME_230MS = 66,
201 ENV_TIME_220MS = 67,
202 ENV_TIME_210MS = 68,
203 ENV_TIME_200MS = 69,
204 ENV_TIME_190MS = 70,
205 ENV_TIME_180MS = 71,
206 ENV_TIME_170MS = 72,
207 ENV_TIME_160MS = 73,
208 ENV_TIME_150MS = 74,
209 ENV_TIME_140MS = 75,
210 ENV_TIME_130MS = 76,
211 ENV_TIME_120MS = 77,
212 ENV_TIME_110MS = 78,
213 ENV_TIME_100MS = 79,
214 ENV_TIME_16UNITS = 80,
215 ENV_TIME_14UNITS = 81,
216 ENV_TIME_12UNITS = 81,
217 ENV_TIME_11UNITS = 83,
218 ENV_TIME_10UNITS = 84,
219 ENV_TIME_9UNITS = 85,
220 ENV_TIME_8UNITS = 86,
221 ENV_TIME_7UNITS = 87,
222 ENV_TIME_6UNITS = 88,
223 ENV_TIME_5UNITS = 89,
224 ENV_TIME_4UNITS = 90,
225 ENV_TIME_3UNITS = 91,
226 ENV_TIME_2UNITS = 92,
227 ENV_TIME_1UNITS = 93,
228 ENV_TIME_0 = 94,
229};
@ ENV_TIME_14UNITS
Definition audio.h:215
@ ENV_TIME_350MS
Definition audio.h:191
@ ENV_TIME_4_5S
Definition audio.h:160
@ ENV_TIME_280MS
Definition audio.h:195
@ ENV_TIME_140MS
Definition audio.h:209
@ ENV_TIME_45S
Definition audio.h:137
@ ENV_TIME_55S
Definition audio.h:135
@ ENV_TIME_240MS
Definition audio.h:199
@ ENV_TIME_270MS
Definition audio.h:196
@ ENV_TIME_800MS
Definition audio.h:181
@ ENV_TIME_8S
Definition audio.h:156
@ ENV_TIME_120MS
Definition audio.h:211
@ ENV_TIME_1UNITS
Definition audio.h:227
@ ENV_TIME_1100MS
Definition audio.h:176
@ ENV_TIME_18S
Definition audio.h:146
@ ENV_TIME_375MS
Definition audio.h:190
@ ENV_TIME_17S
Definition audio.h:147
@ ENV_TIME_210MS
Definition audio.h:202
@ ENV_TIME_160MS
Definition audio.h:207
@ ENV_TIME_170MS
Definition audio.h:206
@ ENV_TIME_700MS
Definition audio.h:183
@ ENV_TIME_60S
Definition audio.h:134
@ ENV_TIME_1900MS
Definition audio.h:168
@ ENV_TIME_1800MS
Definition audio.h:169
@ ENV_TIME_100MS
Definition audio.h:213
@ ENV_TIME_650MS
Definition audio.h:184
@ ENV_TIME_6S
Definition audio.h:158
@ ENV_TIME_35S
Definition audio.h:139
@ ENV_TIME_850MS
Definition audio.h:180
@ ENV_TIME_1700MS
Definition audio.h:170
@ ENV_TIME_600MS
Definition audio.h:185
@ ENV_TIME_0
Definition audio.h:228
@ ENV_TIME_10S
Definition audio.h:154
@ ENV_TIME_15S
Definition audio.h:149
@ ENV_TIME_22_5S
Definition audio.h:143
@ ENV_TIME_220MS
Definition audio.h:201
@ ENV_TIME_190MS
Definition audio.h:204
@ ENV_TIME_2UNITS
Definition audio.h:226
@ ENV_TIME_11UNITS
Definition audio.h:217
@ ENV_TIME_25S
Definition audio.h:142
@ ENV_TIME_30S
Definition audio.h:140
@ ENV_TIME_950MS
Definition audio.h:178
@ ENV_TIME_300MS
Definition audio.h:193
@ ENV_TIME_110MS
Definition audio.h:212
@ ENV_TIME_1300MS
Definition audio.h:174
@ ENV_TIME_27_5S
Definition audio.h:141
@ ENV_TIME_1400MS
Definition audio.h:173
@ ENV_TIME_150MS
Definition audio.h:208
@ ENV_TIME_2500MS
Definition audio.h:165
@ ENV_TIME_8UNITS
Definition audio.h:220
@ ENV_TIME_2250MS
Definition audio.h:166
@ ENV_TIME_14S
Definition audio.h:150
@ ENV_TIME_3S
Definition audio.h:163
@ ENV_TIME_1600MS
Definition audio.h:171
@ ENV_TIME_1S
Definition audio.h:177
@ ENV_TIME_5S
Definition audio.h:159
@ ENV_TIME_5UNITS
Definition audio.h:223
@ ENV_TIME_230MS
Definition audio.h:200
@ ENV_TIME_7S
Definition audio.h:157
@ ENV_TIME_16UNITS
Definition audio.h:214
@ ENV_TIME_6UNITS
Definition audio.h:222
@ ENV_TIME_2750MS
Definition audio.h:164
@ ENV_TIME_325MS
Definition audio.h:192
@ ENV_TIME_450MS
Definition audio.h:188
@ ENV_TIME_3_5S
Definition audio.h:162
@ ENV_TIME_4S
Definition audio.h:161
@ ENV_TIME_180MS
Definition audio.h:205
@ ENV_TIME_3UNITS
Definition audio.h:225
@ ENV_TIME_19S
Definition audio.h:145
@ ENV_TIME_13S
Definition audio.h:151
@ ENV_TIME_1500MS
Definition audio.h:172
@ ENV_TIME_200MS
Definition audio.h:203
@ ENV_TIME_4UNITS
Definition audio.h:224
@ ENV_TIME_50S
Definition audio.h:136
@ ENV_TIME_11S
Definition audio.h:153
@ ENV_TIME_130MS
Definition audio.h:210
@ ENV_TIME_40S
Definition audio.h:138
@ ENV_TIME_10UNITS
Definition audio.h:218
@ ENV_TIME_2S
Definition audio.h:167
@ ENV_TIME_250MS
Definition audio.h:198
@ ENV_TIME_900MS
Definition audio.h:179
@ ENV_TIME_12S
Definition audio.h:152
@ ENV_TIME_7UNITS
Definition audio.h:221
@ ENV_TIME_400MS
Definition audio.h:189
@ ENV_TIME_20S
Definition audio.h:144
@ ENV_TIME_16S
Definition audio.h:148
@ ENV_TIME_1200MS
Definition audio.h:175
@ ENV_TIME_9S
Definition audio.h:155
@ ENV_TIME_750MS
Definition audio.h:182
@ ENV_TIME_12UNITS
Definition audio.h:216
@ ENV_TIME_550MS
Definition audio.h:186
@ ENV_TIME_260MS
Definition audio.h:197
@ ENV_TIME_9UNITS
Definition audio.h:219
@ ENV_TIME_290MS
Definition audio.h:194
@ ENV_TIME_500MS
Definition audio.h:187

◆ SoundPlayerState

Enumerator
SND_PLAYER_STATE_CONTINUE 
SND_PLAYER_STATE_INIT 

Definition at line 231 of file audio.h.

231 {
234};
@ SND_PLAYER_STATE_INIT
Definition audio.h:233
@ SND_PLAYER_STATE_CONTINUE
Definition audio.h:232

◆ SoundManagerState

Enumerator
SND_MANAGER_STATE_ENABLED 
SND_MANAGER_STATE_DISABLED 

Definition at line 236 of file audio.h.

236 {
239};
@ SND_MANAGER_STATE_DISABLED
Definition audio.h:238
@ SND_MANAGER_STATE_ENABLED
Definition audio.h:237

◆ SoundInstanceFlags

Enumerator
SOUND_INSTANCE_FLAG_ACTIVE 
SOUND_INSTANCE_FLAG_POSITION_CHANGED 

Definition at line 241 of file audio.h.

241 {
244};
@ SOUND_INSTANCE_FLAG_POSITION_CHANGED
Definition audio.h:243
@ SOUND_INSTANCE_FLAG_ACTIVE
Definition audio.h:242

Variable Documentation

◆ AuSynUseStereo

◆ DummyInstrumentPredictor

u16 DummyInstrumentPredictor[32]
extern

Definition at line 61 of file sfx_player.c.

61 {
62 0xF803, 0x0125, 0x07D0, 0xFDBC, 0xF886, 0x0355, 0x06FC, 0xFBAB,
63 0xFEDA, 0xF82D, 0x0245, 0x077D, 0xFCA9, 0xF901, 0x0456, 0x065D,
64 0xFC33, 0xFBB2, 0xFCEF, 0xFE94, 0xFFD8, 0x0080, 0x00A4, 0x007D,
65 0x090E, 0x0673, 0x02FF, 0x0053, 0xFEF2, 0xFEA7, 0xFEF9, 0xFF7B
66};

◆ DummyInstrumentBase

u8 DummyInstrumentBase[190]
extern

Definition at line 68 of file sfx_player.c.

68 {
69 0xB1, 0x01, 0x11, 0x10, 0x00, 0xFF, 0xFE, 0x34, 0xBB, 0x90, 0xE2, 0x1E, 0x00, 0xFB, 0x10, 0xEF,
70 0xF2, 0xD1, 0x80, 0xC4, 0xB3, 0xB1, 0xD3, 0xCF, 0xD1, 0xFD, 0xFE, 0x80, 0x1D, 0x2D, 0x3D, 0x3B,
71 0x2C, 0x3B, 0xFC, 0x1D, 0x80, 0xDE, 0xF0, 0xD0, 0xD3, 0xD2, 0xB3, 0xD1, 0xF4, 0x80, 0xA2, 0x03,
72 0xD0, 0x0D, 0xA9, 0xEA, 0xCB, 0x72, 0x90, 0x41, 0x4E, 0x1D, 0x2D, 0x0C, 0x1E, 0x10, 0x2F, 0x90,
73 0xF2, 0x12, 0x03, 0xF0, 0xC2, 0xD1, 0xD4, 0xF3, 0x80, 0xB0, 0xA1, 0xBF, 0xD2, 0x1E, 0x12, 0x70,
74 0x4D, 0x80, 0x4C, 0x39, 0x2C, 0x7E, 0x30, 0x6D, 0xB9, 0xCF, 0x90, 0xE1, 0xF2, 0xF3, 0xF2, 0xE1,
75 0xE2, 0x16, 0x22, 0xC1, 0xE7, 0x28, 0xF4, 0xF0, 0x21, 0x10, 0x10, 0xFF, 0xA1, 0xED, 0x9F, 0x2F,
76 0xF5, 0x61, 0x33, 0x3C, 0xD0, 0xA1, 0xDA, 0xC2, 0xFF, 0x14, 0x41, 0x22, 0x2D, 0xEF, 0xA1, 0xFA,
77 0xE1, 0x0E, 0x23, 0x30, 0x32, 0x0E, 0xF0, 0x91, 0x9A, 0xF2, 0xCF, 0x55, 0x13, 0x61, 0xEE, 0x1C,
78 0x91, 0x9D, 0x0F, 0xD2, 0x52, 0x06, 0x4D, 0xE1, 0x09, 0x91, 0xD0, 0x1B, 0x15, 0x2E, 0x36, 0xFD,
79 0x12, 0xCB, 0x81, 0x22, 0xBC, 0x65, 0xF0, 0x73, 0xCE, 0x3F, 0xAE, 0x71, 0x4E, 0x93, 0x70, 0xF5,
80 0x6E, 0xD2, 0x1B, 0xD1, 0x61, 0x0A, 0x5D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
81};

◆ CUSTOM_SMALL_ROOM_PARAMS

s32 CUSTOM_SMALL_ROOM_PARAMS[]
extern

Definition at line 84 of file sfx_player.c.

84 {
85 /* sections length */
86 3, 11,
87 /* chorus chorus filter
88 input output fbcoef ffcoef gain rate depth coef */
89 0, 9, 9830, -9830, 0, 0, 0, 0,
90 3, 7, 3276, -3276, 0x3FFF, 0, 0, 0,
91 0, 10, 5000, 0, 0, 0, 0, 0x5000
92};

Referenced by au_sfx_init().

◆ CUSTOM_ECHO_PARAMS_1

s32 CUSTOM_ECHO_PARAMS_1[]
extern

Definition at line 95 of file sfx_player.c.

95 {
96 /* sections length */
97 1, 11,
98 /* chorus chorus filter
99 input output fbcoef ffcoef gain rate depth coef */
100 0, 10, 20000, 0, 0x7FFF, 0, 0, 0x7FFF
101};

Referenced by au_sfx_init().

◆ CUSTOM_ECHO_PARAMS_3

s32 CUSTOM_ECHO_PARAMS_3[]
extern

Definition at line 113 of file sfx_player.c.

113 {
114 /* sections length */
115 1, 14,
116 /* chorus chorus filter
117 input output fbcoef ffcoef gain rate depth coef */
118 0, 13, 20000, 0, 0x7FFF, 0, 0, 0x7FFF
119};

Referenced by au_sfx_init().

◆ CUSTOM_ECHO_PARAMS_2

s32 CUSTOM_ECHO_PARAMS_2[]
extern

Definition at line 104 of file sfx_player.c.

104 {
105 /* sections length */
106 1, 13,
107 /* chorus chorus filter
108 input output fbcoef ffcoef gain rate depth coef */
109 0, 12, 20000, 0, 0x7FFF, 0, 0, 0x7FFF
110};

Referenced by au_sfx_init().

◆ DummyInstrumentEnvelope

EnvelopePreset DummyInstrumentEnvelope
extern

Definition at line 294 of file sfx_player.c.

294 {
295 .count = 1,
296 .offsets = { { 0x8, 0xC } }, // EnvelopePressDefault, EnvelopePressDefault
297};

◆ AmbientSoundIDtoMSEQFileIndex

u8 AmbientSoundIDtoMSEQFileIndex[]
extern

Definition at line 328 of file sfx_player.c.

328 {
329 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A,
330 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12,
331 0x13, 0x14, 0x15, 0x16, 0x17, 0x00, 0x00, 0x00,
332 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
333};

◆ AuEnvelopeIntervals

s32 AuEnvelopeIntervals[]
extern

Definition at line 341 of file sfx_player.c.

341 {
342 SEC(60), SEC(55), SEC(50), SEC(45), SEC(40), SEC(35), SEC(30), SEC(27.5), SEC(25), SEC(22.5),
343 SEC(20), SEC(19), SEC(18), SEC(17), SEC(16), SEC(15), SEC(14), SEC(13), SEC(12), SEC(11),
344 SEC(10), SEC(9), SEC(8), SEC(7), SEC(6), SEC(5), SEC(4.5), SEC(4), SEC(3.5), SEC(3),
345 SEC(2.75), SEC(2.5), SEC(2.25), SEC(2), SEC(1.9), SEC(1.8), SEC(1.7), SEC(1.6), SEC(1.5), SEC(1.4),
346 SEC(1.3), SEC(1.2), SEC(1.1), SEC(1), SEC(0.95), SEC(0.9), SEC(0.85), SEC(0.8), SEC(0.75), SEC(0.7),
347 SEC(0.65), SEC(0.6), SEC(0.55), SEC(0.5), SEC(0.45), SEC(0.4), SEC(0.375), SEC(0.35), SEC(0.325), SEC(0.3),
348 SEC(0.29), SEC(0.28), SEC(0.27), SEC(0.26), SEC(0.25), SEC(0.24), SEC(0.23), SEC(0.22), SEC(0.21), SEC(0.2),
349 SEC(0.19), SEC(0.18), SEC(0.17), SEC(0.16), SEC(0.15), SEC(0.14), SEC(0.13), SEC(0.12), SEC(0.11), SEC(0.1),
350 16 * AU_5750, 14 * AU_5750, 12 * AU_5750, 11 * AU_5750, 10 * AU_5750,
351 9 * AU_5750, 8 * AU_5750, 7 * AU_5750, 6 * AU_5750, 5 * AU_5750,
352 4 * AU_5750, 3 * AU_5750, 2 * AU_5750, 1 * AU_5750, 0, 0, 0, 0, 0, 0,
353};
#define AU_5750
Definition audio.h:22
#define SEC(x)
Definition sfx_player.c:339

Referenced by au_update_voices(), and au_voice_start().

◆ PreventBGMPlayerUpdate

◆ AuAmbiencePlayOnlyIndex

u16 AuAmbiencePlayOnlyIndex
extern

Definition at line 8 of file 30450.c.

Referenced by snd_ambient_80055760(), snd_ambient_play_only(), and snd_ambient_stop_all().

◆ gActiveSynDriverPtr

AuSynDriver* gActiveSynDriverPtr
extern

◆ gSynDriverPtr

◆ AuUseGlobalVolume

u8 AuUseGlobalVolume
extern

Definition at line 16 of file 31650.c.

Referenced by alAudioFrame(), au_driver_init(), and au_use_global_volume().

◆ AuGlobalVolume

u16 AuGlobalVolume
extern

Definition at line 17 of file 31650.c.

Referenced by alAudioFrame(), au_driver_init(), au_get_global_volume(), and au_set_global_volume().

◆ AuSynStereoDirty

u8 AuSynStereoDirty
extern

Definition at line 18 of file 31650.c.

Referenced by alAudioFrame(), au_driver_init(), and func_80056D5C().

◆ gSoundGlobals

◆ gBGMPlayerC

BGMPlayer* gBGMPlayerC
extern

Definition at line 7 of file 2e230_len_2190.c.

Referenced by au_engine_init().

◆ gBGMPlayerB

◆ gAuAmbienceManager

◆ gSoundManager

◆ gBGMPlayerA