mirror of
https://github.com/zeldaret/ss
synced 2026-07-11 22:50:06 -04:00
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
|
|
#ifndef NW4R_SND_SOUND_3D_ACTOR_H
|
|
#define NW4R_SND_SOUND_3D_ACTOR_H
|
|
|
|
#include "nw4r/math.h"
|
|
#include "nw4r/snd/snd_BasicSound.h"
|
|
#include "nw4r/snd/snd_SoundActor.h"
|
|
#include "nw4r/types_nw4r.h"
|
|
|
|
|
|
namespace nw4r {
|
|
namespace snd {
|
|
|
|
class Sound3DActor : public SoundActor, public detail::BasicSound::AmbientInfo::AmbientArgUpdateCallback {
|
|
public:
|
|
Sound3DActor(SoundArchivePlayer &rPlayer, Sound3DManager &rManager);
|
|
virtual ~Sound3DActor(); // at 0x8
|
|
|
|
virtual StartResult detail_SetupSound(
|
|
SoundHandle *pHandle, u32 id, detail::BasicSound::AmbientInfo *pArgInfo,
|
|
detail::ExternalSoundPlayer *pPlayer, bool hold,
|
|
const StartInfo *pStartInfo
|
|
); // at 0xC
|
|
|
|
virtual void detail_Update(void *pArg,
|
|
const detail::BasicSound *pSound); // at 0xC
|
|
|
|
void SetPosition(const math::VEC3 &rPosition);
|
|
|
|
private:
|
|
static void ClearUpdateCallback(SoundHandle &rHandle);
|
|
|
|
private:
|
|
Sound3DManager &m3DManager; // at 0xAC
|
|
SoundArchivePlayer &mSoundArchivePlayer; // at 0xB0
|
|
u32 mUserParam; // at 0xB4
|
|
math::VEC3 mPosition; // at 0xB8
|
|
};
|
|
|
|
} // namespace snd
|
|
} // namespace nw4r
|
|
|
|
#endif
|