Skip to content

Commit cbb547f

Browse files
committed
- improve fmod waveform and state cleanup on release
1 parent d9d2cd1 commit cbb547f

2 files changed

Lines changed: 222 additions & 59 deletions

File tree

core/put/source/audio/audio.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace put
2121
{
2222
enum audio_play_state_t
2323
{
24+
not_initialised,
2425
not_playing,
2526
playing,
2627
paused
@@ -88,6 +89,7 @@ namespace put
8889
{
8990
f32* buckets = nullptr; // min/max pairs for each bucket (size = resolution * 2)
9091
u32 resolution = 0; // number of buckets
92+
u32 buckets_loaded = 0; // number of buckets processed so far (for progressive loading)
9193
u32 length_ms = 0; // total length in milliseconds
9294
waveform_state state = e_waveform_state::loading;
9395
};

0 commit comments

Comments
 (0)