From 8abd7a81c988b26c19406c1ea669e050d56d2db5 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 13 Sep 2022 12:29:37 -0500 Subject: add initial audio bindings --- demo/example_sound.ogg | Bin 0 -> 1089524 bytes demo/honey.lua | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 demo/example_sound.ogg (limited to 'demo') diff --git a/demo/example_sound.ogg b/demo/example_sound.ogg new file mode 100644 index 0000000..5f97755 Binary files /dev/null and b/demo/example_sound.ogg differ diff --git a/demo/honey.lua b/demo/honey.lua index 9d007e5..f7b4392 100644 --- a/demo/honey.lua +++ b/demo/honey.lua @@ -2,6 +2,12 @@ local gl = honey.gl local window = honey.window +--===== initialize audio =====-- + +local engine = honey.audio.engine_init() +honey.audio.engine_play_sound(engine, 'example_sound.ogg') + + --====== initialize opengl ======-- gl.Init() @@ -196,5 +202,9 @@ while not window.shouldClose(w) do window.swapBuffers(w) window.pollEvents() end + +--===== shut down =====-- + window.destroy(w) gl.Terminate() +honey.audio.engine_uninit(engine) -- cgit v1.2.1