diff --git a/examples/embedding/main.lua b/examples/embedding/main.lua index ae9b2f3..52b4477 100644 --- a/examples/embedding/main.lua +++ b/examples/embedding/main.lua @@ -2,8 +2,12 @@ local width, height = 800, 450 rl.SetConfigFlags(rl.FLAG_VSYNC_HINT) rl.InitWindow(800, 450, "raylib [shapes] example - basic shapes drawing") +rl.InitAudioDevice() local logo = rl.LoadTexture "ressources/logo.png" +local music = rl.LoadSound "ressources/mini1111.ogg" + +rl.PlaySound(music) while not rl.WindowShouldClose() do rl.BeginDrawing() @@ -15,4 +19,5 @@ while not rl.WindowShouldClose() do rl.EndDrawing() end +rl.CloseAudioDevice() rl.CloseWindow() diff --git a/examples/embedding/ressources/mini1111.ogg b/examples/embedding/ressources/mini1111.ogg new file mode 100644 index 0000000..2058d4d Binary files /dev/null and b/examples/embedding/ressources/mini1111.ogg differ diff --git a/examples/embedding/ressources/mini1111.xm b/examples/embedding/ressources/mini1111.xm new file mode 100644 index 0000000..a185c1a Binary files /dev/null and b/examples/embedding/ressources/mini1111.xm differ