diff options
| author | robojumper <robojumper@gmail.com> | 2025-05-27 21:38:15 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-05-27 21:38:15 +0200 |
| commit | d6859dfd74ca205cf9cae2fa343df56124403a9d (patch) | |
| tree | 402c190306838cc8d4b45beb18da8f8e50cc73cf /include | |
| parent | a600b0c092380bc2bb86644fcec0451afe0f6e78 (diff) | |
snd_SeqSound OK
Diffstat (limited to 'include')
| -rw-r--r-- | include/nw4r/snd/snd_BasicSound.h | 1 | ||||
| -rw-r--r-- | include/nw4r/snd/snd_SeqPlayer.h | 4 | ||||
| -rw-r--r-- | include/nw4r/snd/snd_SeqSound.h | 9 |
3 files changed, 14 insertions, 0 deletions
diff --git a/include/nw4r/snd/snd_BasicSound.h b/include/nw4r/snd/snd_BasicSound.h index 49d9b3a8..84a4d5e4 100644 --- a/include/nw4r/snd/snd_BasicSound.h +++ b/include/nw4r/snd/snd_BasicSound.h @@ -253,6 +253,7 @@ namespace nw4r { namespace snd { namespace detail void SetAutoStopCounter(int count); void FadeIn(int fadeFrames); + bool GetStartedFlag() const { return mStartedFlag; } u32 GetId() const { return mId; } PlayerHeap *GetPlayerHeap() { return mPlayerHeap; } SoundPlayer *GetSoundPlayer() { return mSoundPlayer; } diff --git a/include/nw4r/snd/snd_SeqPlayer.h b/include/nw4r/snd/snd_SeqPlayer.h index cb4c1a52..54b8e0ae 100644 --- a/include/nw4r/snd/snd_SeqPlayer.h +++ b/include/nw4r/snd/snd_SeqPlayer.h @@ -149,6 +149,10 @@ namespace nw4r { namespace snd { namespace detail return mParserParam.timebase * mParserParam.tempo * mTempoRatio; } + u32 GetTickCounter() const { + return mTickCounter; + } + void SetSeqData(void const *seqBase, s32 seqOffset); void CallSeqUserprocCallback(u16 procId, SeqTrack *track); diff --git a/include/nw4r/snd/snd_SeqSound.h b/include/nw4r/snd/snd_SeqSound.h index d700b34f..7079f9bc 100644 --- a/include/nw4r/snd/snd_SeqSound.h +++ b/include/nw4r/snd/snd_SeqSound.h @@ -121,6 +121,15 @@ namespace nw4r { namespace snd { namespace detail static void NotifyLoadAsyncEndSeqData(bool result, void const *seqBase, void *userData); + void SetTrackMute(u32 trackFlags, SeqMute mute); + void SetTrackSilence(u32 trackFlags, bool silence, int fadeFrames); + void SetTrackVolume(u32 trackFlags, f32 volume); + bool ReadVariable(int varNo, s16 *value) const; + bool WriteVariable(int varNo, s16 value); + static bool WriteGlobalVariable(int varNo, s16 value); + bool WriteTrackVariable(int trackNo, int varNo, s16 value); + u32 GetTick() const; + static DebugSoundType GetSoundType() { return DEBUG_SOUND_TYPE_SEQSOUND; |
