diff options
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) |