mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-17 16:38:14 +03:00
MP3 works!
This commit is contained in:
parent
6fd6de0983
commit
7fae010bb7
@ -38,8 +38,8 @@
|
||||
(println* "Nr of music decoders: " n)
|
||||
(for [i 0 n]
|
||||
(println* " - " &(str (Mixer.get-music-decoder i)))))
|
||||
(let-do [music (Mixer.load-music (cstr "resources/Quarter.mp3"))]
|
||||
(println* "Music " (if (null? music) "NULL..." "not null!"))
|
||||
(let-do [music (Mixer.load-music (cstr "resources/song.mp3"))]
|
||||
(println* "Music is " (if (null? music) "null." "not null."))
|
||||
(println* "Play result: " (Mixer.play-music music -1))
|
||||
)
|
||||
(SDLApp.run-with-callbacks &app event-handler id SDLApp.default-draw 0)
|
||||
|
Binary file not shown.
BIN
resources/song.mp3
Normal file
BIN
resources/song.mp3
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user