#include <snd_SequenceSound.h>
Inherits nw::snd::internal::BasicSound.
Classes | |
| class | DataLoadTask |
| struct | LoadInfo |
| struct | Resource |
| struct | StartInfo |
Public Member Functions | |
| SequenceSound (SequenceSoundInstanceManager &manager) | |
| void | Setup (driver::SequenceTrackAllocator *trackAllocator, u32 allocTracks, driver::NoteOnCallback *callback) |
| void | Prepare (const Resource &res, const StartInfo &startInfo) |
| bool | RegisterDataLoadTask (const LoadInfo &loadInfo, const StartInfo &startInfo) |
| void | Initialize () override |
| void | Finalize () override |
| bool | IsPrepared () const override |
| void | SetTempoRatio (f32 tempoRatio) |
| void | SetChannelPriority (int priority) |
| void | SetReleasePriorityFix (bool fix) |
| void | SetSequenceUserprocCallback (SequenceUserprocCallback callback, void *arg) |
| u32 | GetTick () const |
| void | SetTrackMute (u32 trackBitFlag, SeqMute mute) |
| void | SetTrackMute (u32 trackBitFlag, bool muteFlag) |
| void | SetTrackSilence (u32 trackBitFlag, bool silenceFlag, int fadeTimes) |
| void | SetTrackBiquadFilter (u32 trackBitFlag, int type, f32 value) |
| void | SetTrackBankIndex (u32 trackBitFlag, int bankIndex) |
| void | SetTrackVolume (u32 trackBitFlag, f32 volume) |
| void | SetTrackPitch (u32 trackBitFlag, f32 pitch) |
| void | SetTrackLpfFreq (u32 trackBitFlag, f32 lpfFreq) |
| void | SetTrackPanRange (u32 trackBitFlag, f32 panRange) |
| void | SetTrackModDepth (u32 trackBitFlag, f32 depth) |
| void | SetTrackModSpeed (u32 trackBitFlag, f32 speed) |
| void | SetTrackTranspose (u32 trackBitFlag, s8 transpose) |
| void | SetTrackVelocityRange (u32 trackBitFlag, u8 range) |
| void | SetTrackOutputLine (u32 trackBitFlag, u32 lineFlag) |
| void | ResetTrackOutputLine (u32 trackBitFlag) |
| void | SetTrackMainOutVolume (u32 trackBitFlag, f32 volume) |
| void | SetTrackPan (u32 trackBitFlag, f32 pan) |
| void | SetTrackSurroundPan (u32 trackBitFlag, f32 surroundPan) |
| void | SetTrackMainSend (u32 trackBitFlag, f32 send) |
| void | SetTrackFxSend (u32 trackBitFlag, AuxBus bus, f32 send) |
| void | SetTrackDrcOutVolume (u32 drcIndex, u32 trackBitFlag, f32 volume) |
| void | SetTrackDrcPan (u32 drcIndex, u32 trackBitFlag, f32 pan) |
| void | SetTrackDrcSurroundPan (u32 drcIndex, u32 trackBitFlag, f32 span) |
| void | SetTrackDrcMainSend (u32 drcIndex, u32 trackBitFlag, f32 send) |
| void | SetTrackDrcFxSend (u32 drcIndex, u32 trackBitFlag, AuxBus bus, f32 send) |
| bool | ReadVariable (int varNo, s16 *var) const |
| bool | ReadTrackVariable (int trackNo, int varNo, s16 *var) const |
| void | WriteVariable (int varNo, s16 var) |
| void | WriteTrackVariable (int trackNo, int varNo, s16 var) |
| Public Member Functions inherited from nw::snd::internal::BasicSound | |
| BasicSound () | |
| virtual | ~BasicSound () |
| void | Update () |
| void | StartPrepared () |
| void | Stop (int fadeFrames) |
| void | Pause (bool flag, int fadeFrames) |
| void | SetAutoStopCounter (int frames) |
| void | FadeIn (int frames) |
| bool | IsPause () const |
| bool | IsStarted () const |
| void | SetPriority (int priority, int ambientPriority) |
| void | GetPriority (int *priority, int *ambientPriority) const |
| void | SetInitialVolume (f32 volume) |
| f32 | GetInitialVolume () const |
| void | SetVolume (f32 volume, int frames=0) |
| f32 | GetVolume () const |
| void | SetPitch (f32 pitch) |
| f32 | GetPitch () const |
| void | SetOutputLine (u32 lineFlag) |
| u32 | GetOutputLine () const |
| void | ResetOutputLine () |
| void | SetPan (f32 pan) |
| f32 | GetPan () const |
| void | SetPanMode (PanMode mode) |
| void | SetPanCurve (PanCurve curve) |
| void | SetFrontBypass (bool isFrontBypass) |
| void | SetRemoteFilter (u8 filter) |
| void | SetVoiceRendererType (VoiceRendererType mode) |
| void | SetOutputVolume (OutputDevice device, f32 volume) |
| f32 | GetOutputVolume (OutputDevice device) const |
| void | SetRemoteOutVolume (u32 remoteIndex, f32 volume) |
| f32 | GetRemoteOutVolume (u32 remoteIndex) const |
| int | GetPlayerPriority () const |
| void | SetId (u32 id) |
| u32 | GetId () const |
| int | CalcCurrentPlayerPriority () const |
| SoundPlayer * | GetSoundPlayer () |
| const SoundPlayer * | GetSoundPlayer () const |
| void | AttachSoundPlayer (SoundPlayer *player) |
| void | DetachSoundPlayer (SoundPlayer *player) |
| void | AttachSoundActor (SoundActor *actor) |
| void | DetachSoundActor (SoundActor *actor) |
| void | AttachExternalSoundPlayer (ExternalSoundPlayer *extPlayer) |
| void | DetachExternalSoundPlayer (ExternalSoundPlayer *extPlayer) |
| void | AttachPlayerHeap (PlayerHeap *pHeap) |
| void | DetachPlayerHeap (PlayerHeap *pHeap) |
| PlayerHeap * | GetPlayerHeap () |
| void | SetAmbientInfo (const AmbientInfo &info) |
| void | ClearAmbientArgUpdateCallback () |
| void | ClearAmbientParamUpdateCallback () |
| void | ClearAmbientArgAllocatorCallback () |
| const SoundParam & | GetAmbientParam () const |
| bool | IsAttachedGeneralHandle () |
| bool | IsAttachedTempGeneralHandle () |
| void | DetachGeneralHandle () |
| void | DetachTempGeneralHandle () |
| void | SetUserParamBuffer (void *buffer, size_t size) |
| void * | GetUserParam () |
| PauseState | GetPauseState () const |
Static Public Member Functions | |
| static bool | ReadGlobalVariable (int varNo, s16 *var) |
| static void | WriteGlobalVariable (int varNo, s16 var) |
| Static Public Member Functions inherited from nw::snd::internal::BasicSound | |
| static int | GetAmbientPriority (const AmbientInfo &ambientInfo, u32 soundId) |
Static Public Attributes | |
| static const int | BANK_INDEX_MIN = 0 |
| static const int | BANK_INDEX_MAX = 3 |
| static const s8 | TRANSPOSE_MIN = -64 |
| static const s8 | TRANSPOSE_MAX = 63 |
| static const u8 | VELOCITY_RANGE_MIN = 0 |
| static const u8 | VELOCITY_RANGE_MAX = 127 |
| Static Public Attributes inherited from nw::snd::internal::BasicSound | |
| static const int | PRIORITY_MIN = 0 |
| static const int | PRIORITY_MAX = 127 |
| static const u32 | INVALID_ID = 0xffffffff |
Protected Member Functions | |
| bool | IsAttachedTempSpecialHandle () override |
| void | DetachTempSpecialHandle () override |
| driver::BasicSoundPlayer * | GetBasicSoundPlayerHandle () override |
| void | OnUpdatePlayerPriority () override |
| void | OnUpdate () override |
| Protected Member Functions inherited from nw::snd::internal::BasicSound | |
| virtual void | UpdateMoveValue () |
| virtual void | UpdateParam () |
| bool | IsPlayerAvailable () const |
Private Types | |
| typedef void(* | NotifyAsyncLoadFinished) (bool result, const LoadItemInfo *seq, const LoadItemInfo banks[], const LoadItemInfo warcs[], const bool warcIsIndividuals[], void *userData) |
Private Member Functions | |
| void | Skip (driver::SequenceSoundPlayer::OffsetType offsetType, int offset) |
| void | CheckLoadState () |
Static Private Member Functions | |
| static void | NotifyAsyncLoadFinishedFunc (bool result, const LoadItemInfo *seq, const LoadItemInfo banks[], const LoadItemInfo warcs[], const bool warcIsIndividuals[], void *userData) |
Friends | |
| class | nw::snd::SequenceSoundHandle |
Additional Inherited Members | |
| Public Types inherited from nw::snd::internal::BasicSound | |
| enum | PlayerState { PLAYER_STATE_INIT , PLAYER_STATE_PLAY , PLAYER_STATE_STOP } |
| enum | PauseState { PAUSE_STATE_NORMAL , PAUSE_STATE_PAUSING , PAUSE_STATE_PAUSED , PAUSE_STATE_UNPAUSING } |
| Public Attributes inherited from nw::snd::internal::BasicSound | |
| ut::LinkListNode | m_PriorityLink |
| ut::LinkListNode | m_SoundPlayerPlayLink |
| ut::LinkListNode | m_SoundPlayerPriorityLink |
| ut::LinkListNode | m_ExtSoundPlayerPlayLink |
|
private |
|
explicit |
| void nw::snd::internal::SequenceSound::Setup | ( | driver::SequenceTrackAllocator * | trackAllocator, |
| u32 | allocTracks, | ||
| driver::NoteOnCallback * | callback ) |
| void nw::snd::internal::SequenceSound::Prepare | ( | const Resource & | res, |
| const StartInfo & | startInfo ) |
| bool nw::snd::internal::SequenceSound::RegisterDataLoadTask | ( | const LoadInfo & | loadInfo, |
| const StartInfo & | startInfo ) |
|
overridevirtual |
Reimplemented from nw::snd::internal::BasicSound.
|
overridevirtual |
Reimplemented from nw::snd::internal::BasicSound.
|
inlineoverridevirtual |
Implements nw::snd::internal::BasicSound.
| void nw::snd::internal::SequenceSound::SetTempoRatio | ( | f32 | tempoRatio | ) |
| void nw::snd::internal::SequenceSound::SetChannelPriority | ( | int | priority | ) |
| void nw::snd::internal::SequenceSound::SetReleasePriorityFix | ( | bool | fix | ) |
| void nw::snd::internal::SequenceSound::SetSequenceUserprocCallback | ( | SequenceUserprocCallback | callback, |
| void * | arg ) |
| u32 nw::snd::internal::SequenceSound::GetTick | ( | ) | const |
| void nw::snd::internal::SequenceSound::SetTrackMute | ( | u32 | trackBitFlag, |
| SeqMute | mute ) |
| void nw::snd::internal::SequenceSound::SetTrackMute | ( | u32 | trackBitFlag, |
| bool | muteFlag ) |
| void nw::snd::internal::SequenceSound::SetTrackSilence | ( | u32 | trackBitFlag, |
| bool | silenceFlag, | ||
| int | fadeTimes ) |
| void nw::snd::internal::SequenceSound::SetTrackBiquadFilter | ( | u32 | trackBitFlag, |
| int | type, | ||
| f32 | value ) |
| void nw::snd::internal::SequenceSound::SetTrackBankIndex | ( | u32 | trackBitFlag, |
| int | bankIndex ) |
| void nw::snd::internal::SequenceSound::SetTrackVolume | ( | u32 | trackBitFlag, |
| f32 | volume ) |
| void nw::snd::internal::SequenceSound::SetTrackPitch | ( | u32 | trackBitFlag, |
| f32 | pitch ) |
| void nw::snd::internal::SequenceSound::SetTrackLpfFreq | ( | u32 | trackBitFlag, |
| f32 | lpfFreq ) |
| void nw::snd::internal::SequenceSound::SetTrackPanRange | ( | u32 | trackBitFlag, |
| f32 | panRange ) |
| void nw::snd::internal::SequenceSound::SetTrackModDepth | ( | u32 | trackBitFlag, |
| f32 | depth ) |
| void nw::snd::internal::SequenceSound::SetTrackModSpeed | ( | u32 | trackBitFlag, |
| f32 | speed ) |
| void nw::snd::internal::SequenceSound::SetTrackTranspose | ( | u32 | trackBitFlag, |
| s8 | transpose ) |
| void nw::snd::internal::SequenceSound::SetTrackVelocityRange | ( | u32 | trackBitFlag, |
| u8 | range ) |
| void nw::snd::internal::SequenceSound::SetTrackOutputLine | ( | u32 | trackBitFlag, |
| u32 | lineFlag ) |
| void nw::snd::internal::SequenceSound::ResetTrackOutputLine | ( | u32 | trackBitFlag | ) |
| void nw::snd::internal::SequenceSound::SetTrackMainOutVolume | ( | u32 | trackBitFlag, |
| f32 | volume ) |
| void nw::snd::internal::SequenceSound::SetTrackPan | ( | u32 | trackBitFlag, |
| f32 | pan ) |
| void nw::snd::internal::SequenceSound::SetTrackSurroundPan | ( | u32 | trackBitFlag, |
| f32 | surroundPan ) |
| void nw::snd::internal::SequenceSound::SetTrackMainSend | ( | u32 | trackBitFlag, |
| f32 | send ) |
| void nw::snd::internal::SequenceSound::SetTrackFxSend | ( | u32 | trackBitFlag, |
| AuxBus | bus, | ||
| f32 | send ) |
| void nw::snd::internal::SequenceSound::SetTrackDrcOutVolume | ( | u32 | drcIndex, |
| u32 | trackBitFlag, | ||
| f32 | volume ) |
| void nw::snd::internal::SequenceSound::SetTrackDrcPan | ( | u32 | drcIndex, |
| u32 | trackBitFlag, | ||
| f32 | pan ) |
| void nw::snd::internal::SequenceSound::SetTrackDrcSurroundPan | ( | u32 | drcIndex, |
| u32 | trackBitFlag, | ||
| f32 | span ) |
| void nw::snd::internal::SequenceSound::SetTrackDrcMainSend | ( | u32 | drcIndex, |
| u32 | trackBitFlag, | ||
| f32 | send ) |
| void nw::snd::internal::SequenceSound::SetTrackDrcFxSend | ( | u32 | drcIndex, |
| u32 | trackBitFlag, | ||
| AuxBus | bus, | ||
| f32 | send ) |
| bool nw::snd::internal::SequenceSound::ReadVariable | ( | int | varNo, |
| s16 * | var ) const |
|
static |
| bool nw::snd::internal::SequenceSound::ReadTrackVariable | ( | int | trackNo, |
| int | varNo, | ||
| s16 * | var ) const |
| void nw::snd::internal::SequenceSound::WriteVariable | ( | int | varNo, |
| s16 | var ) |
|
static |
| void nw::snd::internal::SequenceSound::WriteTrackVariable | ( | int | trackNo, |
| int | varNo, | ||
| s16 | var ) |
|
overrideprotectedvirtual |
Implements nw::snd::internal::BasicSound.
|
overrideprotectedvirtual |
Implements nw::snd::internal::BasicSound.
|
inlineoverrideprotectedvirtual |
Implements nw::snd::internal::BasicSound.
|
overrideprotectedvirtual |
Reimplemented from nw::snd::internal::BasicSound.
|
inlineoverrideprotectedvirtual |
Reimplemented from nw::snd::internal::BasicSound.
|
private |
|
staticprivate |
|
private |
|
friend |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |