Bitcrusher
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user