24 void loadSynchronous();
25 void loadAsynchronous();
27 void setSoundName(std::string soundName);
28 std::string getSoundName()
const;
30 void setEncodedSoundName(std::string path);
31 std::string getEncodedSoundName()
const {
return encodedSoundPath.string(); }
33 void setStreaming(
bool streaming) { m_streaming = streaming; }
34 bool getIsStreaming()
const {
return m_streaming; }
41 std::unique_ptr<sc_sound, SC_SOUND_DELETER> m_sound;
43 std::filesystem::path rawSoundPath;
44 std::filesystem::path encodedSoundPath;
46 sc_encoding_format m_encodingFormat = sc_encoding_format_wav;
48 bool m_streaming =
false;
51 RTTR_REGISTRATION_FRIEND