Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
nw4hbm::snd Namespace Reference

Namespaces

namespace  detail
 

Classes

class  DvdSoundArchive
 
class  FxBase
 
class  InstanceManager
 
class  LinkedInstance
 
class  MemorySoundArchive
 
class  NandSoundArchive
 
class  RemoteSpeaker
 
class  SeqSoundHandle
 
class  SoundArchive
 
class  SoundArchivePlayer
 
class  SoundArchivePlayer_FileManager
 
class  SoundHandle
 
class  SoundHeap
 
class  SoundMemoryAllocatable
 
struct  SoundParam
 
class  SoundPlayer
 
class  SoundStartable
 
class  SoundSystem
 
class  StrmSoundHandle
 
struct  VoiceOutParam
 
class  WavePlayer
 
class  WaveSoundHandle
 

Typedefs

typedef ut::LinkList< FxBase, offsetof(FxBase, mFxLink)> FxList
 
typedef enum nw4hbm::snd::SeqMute SeqMute
 
typedef enum nw4hbm::snd::ParseResult ParseResult
 
typedef enum nw4hbm::snd::OutputLineFlag OutputLineFlag
 
typedef enum nw4hbm::snd::OutputMode OutputMode
 
typedef enum nw4hbm::snd::AuxBus AuxBus
 
typedef enum nw4hbm::snd::SampleFormat SampleFormat
 
typedef struct nw4hbm::snd::SoundParam SoundParam
 
typedef enum nw4hbm::snd::SoundType SoundType
 
typedef ut::LinkList< WavePlayer, offsetof(WavePlayer, mPlayerLink)> WavePlayerList
 

Enumerations

enum  DebugWarningFlag {
  DEBUG_WARNING_NOT_ENOUGH_INSTANCE , DEBUG_WARNING_NOT_ENOUGH_SEQSOUND , DEBUG_WARNING_NOT_ENOUGH_STRMSOUND , DEBUG_WARNING_NOT_ENOUGH_WAVESOUND ,
  DEBUG_WARNING_NOT_ENOUGH_SEQTRACK , DEBUG_WARNING_NOT_ENOUGH_STRMCHANNEL
}
 
enum  SeqMute { MUTE_OFF = 0 , MUTE_NO_STOP , MUTE_RELEASE , MUTE_STOP }
 
enum  ParseResult { PARSE_RESULT_CONTINUE = 0 , PARSE_RESULT_FINISH }
 
enum  PanMode { PAN_MODE_DUAL , PAN_MODE_BALANCE }
 
enum  PanCurve {
  PAN_CURVE_SQRT , PAN_CURVE_SQRT_0DB , PAN_CURVE_SQRT_0DB_CLAMP , PAN_CURVE_SINCOS ,
  PAN_CURVE_SINCOS_0DB , PAN_CURVE_SINCOS_0DB_CLAMP , PAN_CURVE_LINEAR , PAN_CURVE_LINEAR_0DB ,
  PAN_CURVE_LINEAR_0DB_CLAMP
}
 
enum  OutputLineFlag { OUTPUT_LINE_MAIN = (1 << 0) , OUTPUT_LINE_REMOTE_N = (1 << 1) }
 
enum  OutputMode { OUTPUT_MODE_STEREO = 0 , OUTPUT_MODE_SURROUND , OUTPUT_MODE_DPL2 , OUTPUT_MODE_MONO }
 
enum  AuxBus { AUX_A = 0 , AUX_B , AUX_C , AUX_BUS_NUM }
 
enum  SampleFormat { SAMPLE_FORMAT_PCM_S32 = 0 , SAMPLE_FORMAT_PCM_S16 , SAMPLE_FORMAT_PCM_S8 , SAMPLE_FORMAT_DSP_ADPCM }
 
enum  SoundType { SOUND_TYPE_INVALID = 0 , SOUND_TYPE_SEQ , SOUND_TYPE_STRM , SOUND_TYPE_WAVE }
 

Variables

static const int THREAD_STACK_SIZE = 1024
 
static const int STREAM_BUFFER_SIZE = 512
 
static const int CHANNEL_MAX = 2
 
static const int VOICE_MAX = 4
 
static const int PRIORITY_MAX = 255
 
static const int REMOTE_FILTER_MAX = 127
 
static const f32 VOLUME_MIN_DB = -90.4f
 
static const f32 VOLUME_MAX_DB = 6.0f
 
static const f32 VOLUME_RANGE_DB = -(VOLUME_MIN_DB - VOLUME_MAX_DB)
 
static const int VOLUME_RANGE_MB = static_cast<int>(10 * VOLUME_RANGE_DB)
 

Typedef Documentation

◆ AuxBus

◆ FxList

typedef ut::LinkList<FxBase, offsetof(FxBase, mFxLink)> nw4hbm::snd::FxList

◆ OutputLineFlag

◆ OutputMode

◆ ParseResult

◆ SampleFormat

◆ SeqMute

◆ SoundParam

typedef struct nw4hbm::snd::SoundParam nw4hbm::snd::SoundParam

◆ SoundType

◆ WavePlayerList

Enumeration Type Documentation

◆ AuxBus

Enumerator
AUX_A 
AUX_B 
AUX_C 
AUX_BUS_NUM 

◆ DebugWarningFlag

Enumerator
DEBUG_WARNING_NOT_ENOUGH_INSTANCE 
DEBUG_WARNING_NOT_ENOUGH_SEQSOUND 
DEBUG_WARNING_NOT_ENOUGH_STRMSOUND 
DEBUG_WARNING_NOT_ENOUGH_WAVESOUND 
DEBUG_WARNING_NOT_ENOUGH_SEQTRACK 
DEBUG_WARNING_NOT_ENOUGH_STRMCHANNEL 

◆ OutputLineFlag

Enumerator
OUTPUT_LINE_MAIN 
OUTPUT_LINE_REMOTE_N 

◆ OutputMode

Enumerator
OUTPUT_MODE_STEREO 
OUTPUT_MODE_SURROUND 
OUTPUT_MODE_DPL2 
OUTPUT_MODE_MONO 

◆ PanCurve

Enumerator
PAN_CURVE_SQRT 
PAN_CURVE_SQRT_0DB 
PAN_CURVE_SQRT_0DB_CLAMP 
PAN_CURVE_SINCOS 
PAN_CURVE_SINCOS_0DB 
PAN_CURVE_SINCOS_0DB_CLAMP 
PAN_CURVE_LINEAR 
PAN_CURVE_LINEAR_0DB 
PAN_CURVE_LINEAR_0DB_CLAMP 

◆ PanMode

Enumerator
PAN_MODE_DUAL 
PAN_MODE_BALANCE 

◆ ParseResult

Enumerator
PARSE_RESULT_CONTINUE 
PARSE_RESULT_FINISH 

◆ SampleFormat

Enumerator
SAMPLE_FORMAT_PCM_S32 
SAMPLE_FORMAT_PCM_S16 
SAMPLE_FORMAT_PCM_S8 
SAMPLE_FORMAT_DSP_ADPCM 

◆ SeqMute

Enumerator
MUTE_OFF 
MUTE_NO_STOP 
MUTE_RELEASE 
MUTE_STOP 

◆ SoundType

Enumerator
SOUND_TYPE_INVALID 
SOUND_TYPE_SEQ 
SOUND_TYPE_STRM 
SOUND_TYPE_WAVE 

Variable Documentation

◆ CHANNEL_MAX

const int nw4hbm::snd::CHANNEL_MAX = 2
static

◆ PRIORITY_MAX

const int nw4hbm::snd::PRIORITY_MAX = 255
static

◆ REMOTE_FILTER_MAX

const int nw4hbm::snd::REMOTE_FILTER_MAX = 127
static

◆ STREAM_BUFFER_SIZE

const int nw4hbm::snd::STREAM_BUFFER_SIZE = 512
static

◆ THREAD_STACK_SIZE

const int nw4hbm::snd::THREAD_STACK_SIZE = 1024
static

◆ VOICE_MAX

const int nw4hbm::snd::VOICE_MAX = 4
static

◆ VOLUME_MAX_DB

const f32 nw4hbm::snd::VOLUME_MAX_DB = 6.0f
static

◆ VOLUME_MIN_DB

const f32 nw4hbm::snd::VOLUME_MIN_DB = -90.4f
static

◆ VOLUME_RANGE_DB

const f32 nw4hbm::snd::VOLUME_RANGE_DB = -(VOLUME_MIN_DB - VOLUME_MAX_DB)
static

◆ VOLUME_RANGE_MB

const int nw4hbm::snd::VOLUME_RANGE_MB = static_cast<int>(10 * VOLUME_RANGE_DB)
static