diff options
author | sanine <sanine.not@pm.me> | 2022-09-13 12:29:37 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-09-13 12:29:37 -0500 |
commit | 8abd7a81c988b26c19406c1ea669e050d56d2db5 (patch) | |
tree | e4c9eaa76370380bec3c507bd6f42b6200540022 /demo/honey.lua | |
parent | 4826589445515d99e620da19e0d809728c071283 (diff) |
add initial audio bindings
Diffstat (limited to 'demo/honey.lua')
-rw-r--r-- | demo/honey.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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) |