diff options
Diffstat (limited to 'demo')
-rw-r--r-- | demo/example_sound.ogg | bin | 0 -> 1089524 bytes | |||
-rw-r--r-- | demo/honey.lua | 10 |
2 files changed, 10 insertions, 0 deletions
diff --git a/demo/example_sound.ogg b/demo/example_sound.ogg Binary files differnew file mode 100644 index 0000000..5f97755 --- /dev/null +++ b/demo/example_sound.ogg 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) |