Search found 3 matches
- Wed Jun 19, 2019 6:30 pm
- Forum: Support and Development
- Topic: A question about music
- Replies: 13
- Views: 13390
Re: A question about music
I put the code into love_update() and nothing is playing now. This neither works when I have it in a separate .lua file nor in main.lua.
- Wed Jun 19, 2019 5:02 pm
- Forum: Support and Development
- Topic: A question about music
- Replies: 13
- Views: 13390
Re: A question about music
Well I created this code and it does not seem to work properly. ---- local music_volume = 0.5 --local sound_volume = 1 ---- music = love.audio.newSource("music/mus_"..math.random(11)..".mp3", "stream" ) ---- if music:isPlaying( ) == false then math.randomseed( os.time()...
- Mon Jun 17, 2019 1:47 pm
- Forum: Support and Development
- Topic: A question about music
- Replies: 13
- Views: 13390
A question about music
Greetings everyone.
I have music files in a folder and I want them to constantly play at background, so, when one ends, another one starts playing. Unfortunately, I don't see any possibility in Love2d to detect the end of sound file. Is it even possible?
I have music files in a folder and I want them to constantly play at background, so, when one ends, another one starts playing. Unfortunately, I don't see any possibility in Love2d to detect the end of sound file. Is it even possible?