Bitcrusher

This commit is contained in:
2022-07-12 20:43:02 +00:00
parent 37d6b64bb9
commit 4896bc5e52
9 changed files with 6184 additions and 37 deletions

View File

@@ -494,14 +494,14 @@ void editor_project_gui()
NK_WINDOW_NO_SCROLLBAR))
{
nk_layout_row_dynamic(ctx, 25, 2);
static struct sound *ss;
static struct wav ss;
if (nk_button_label(ctx, "Load sound")) {
ss = make_sound("alert.wav");
}
if (nk_button_label(ctx, "Play sound")) {
play_sound(ss);
play_sound(&ss);
}
nk_layout_row_dynamic(ctx, 30, 2);