19 explicit Music(
const char* path);
26 const std::string& path()
const;
30 void fade_in(
float duration = 0.1f);
31 void fade_out_and_pause(
float duration = 0.1f);
37 void set_volume(
float volume);
38 void set_muted(
bool muted);
49 std::unique_ptr<MusicImpl> _impl;
51 bool _has_fade =
false;
Stream .mp3 files on iOS and OSX.
Definition: music.hpp:16
void update(float dt)
For fades.
Definition: coroutine.hpp:18