2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 15:11:22 +00:00
metaforce/Runtime/World/CScriptStreamedMusic.hpp
Lioncash 36d04456dd General: Normalize RuntimeCommonB include paths
Finishes the normalizing of all of includes within the RuntimeCommonB target's headers.
2019-09-23 17:22:37 -04:00

37 lines
1.1 KiB
C++

#pragma once
#include <string>
#include "Runtime/GCNTypes.hpp"
#include "Runtime/World/CEntity.hpp"
namespace urde {
class CStateManager;
class CScriptStreamedMusic : public CEntity {
std::string x34_fileName;
bool x44_noStopOnDeactivate;
bool x45_fileIsDsp; // As opposed to .adp for DTK streaming
bool x46_loop;
bool x47_music;
float x48_fadeIn;
float x4c_fadeOut;
u32 x50_volume;
static bool IsDSPFile(std::string_view fileName);
void StopStream(CStateManager& mgr);
void StartStream(CStateManager& mgr);
void TweakOverride(CStateManager& mgr);
public:
CScriptStreamedMusic(TUniqueId id, const CEntityInfo& info, std::string_view name, bool active,
std::string_view fileName, bool noStopOnDeactivate, float fadeIn, float fadeOut, u32 volume,
bool loop, bool music);
void Stop(CStateManager& mgr);
void Play(CStateManager& mgr);
void Accept(IVisitor& visitor) override;
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) override;
};
} // namespace urde