std::string serializeString16(std::string_view plain)
Definition serialize.cpp:22
std::string deSerializeString16(std::istream &is)
Definition serialize.cpp:38
void writeF32(u8 *data, f32 i)
Definition serialize.h:308
f32 readF32(const u8 *data)
Definition serialize.h:190
SoundLocation
Definition sound.h:67
Describes the sound information for playback.
Definition sound.h:20
std::string name
Definition sound.h:54
bool use_local_fallback
Definition sound.h:62
bool loop
Definition sound.h:59
void deSerializeSimple(std::istream &is, u16 protocol_version)
Deserialize a SimpleSoundSpec.
Definition sound.h:45
float gain
Definition sound.h:55
bool exists() const
Definition sound.h:29
void serializeSimple(std::ostream &os, u16 protocol_version) const
Serialize a SimpleSoundSpec.
Definition sound.h:34
SoundSpec(std::string_view name="", float gain=1.0f, bool loop=false, float fade=0.0f, float pitch=1.0f, float start_time=0.0f)
Definition sound.h:21
float start_time
Definition sound.h:58
float pitch
Definition sound.h:57
float fade
Definition sound.h:56