Add music in embedding demo.

This commit is contained in:
Astie Teddy 2020-11-16 16:44:19 +01:00
parent 49de44490e
commit 37a89f7b18
3 changed files with 5 additions and 0 deletions

View File

@ -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()

Binary file not shown.

Binary file not shown.