40 auto load_synchronous() -> void;
41 auto load_asynchronous() -> void;
43 auto set_sound_name(std::string soundName) -> void;
44 auto set_encoded_sound_name(std::string path) -> void;
45 auto get_encoded_sound_name()
const -> std::string {
return encodedSoundPath.string(); }
46 auto set_is_streaming(
bool streaming) ->
void { m_streaming = streaming; }
47 auto set_raw_sound_data(raw_sound_ptr& data, std::size_t size) ->
void
49 m_memorySoundData = std::move(data);
50 m_memorySoundDataSize = size;
53 auto get_sound_name()
const -> std::string;
55 auto get_is_streaming()
const ->
bool{
return m_streaming; }
59 std::unique_ptr<sc_sound, SC_SOUND_DELETER> m_sound;
60 raw_sound_ptr m_memorySoundData;
61 std::size_t m_memorySoundDataSize = 0;
63 std::filesystem::path rawSoundPath;
64 std::filesystem::path encodedSoundPath;
66 sc_encoding_format m_encodingFormat = sc_encoding_format_vorbis;
68 bool m_streaming =
false;