looping music on ios stops after a while

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Nikki
Citizen
Posts: 83
Joined: Wed Jan 25, 2017 5:42 pm

looping music on ios stops after a while

Post by Nikki »

Hiya, what it says in the title,

I am loading and starting music like so:

Code: Select all

 music = love.audio.newSource('sounds/clarinet_duck_jaunty.ogg', 'stream')
   music:setLooping(true)
   music:setPitch(1.0)
   love.audio.play(music)
but after a few minutes of running on the IPad the music consistently stops playing (no error though), I can't reproduce it on my desktop mac, and couldnt find anything about this when googling, anyone knows what's up and how to fix it? the ogg file is roughly 1 Mb don't know if that matters somehow? I don't know what other info to give ?
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: looping music on ios stops after a while

Post by slime »

How many streaming audio sources are you playing at any given time?
User avatar
Nikki
Citizen
Posts: 83
Joined: Wed Jan 25, 2017 5:42 pm

Re: looping music on ios stops after a while

Post by Nikki »

this is the only one, at the moment I have 1 static sound effect which plays occasionaly oh btw, quite important, i am using slam, before i continue i'll test this without using that lib, that ought to narrow down the situation.
User avatar
Nikki
Citizen
Posts: 83
Joined: Wed Jan 25, 2017 5:42 pm

Re: looping music on ios stops after a while

Post by Nikki »

ok, have been waiting for over 15 minutes now, the slam library wasn't involved, I tried disabling it and the behaviour still occured, I tried changing 'stream' to 'static' and it's working correctly now.

So to summarize: on ios looping a piece of streaming music stops working after a few minutes, no errors are thrown. it just stops playing.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: looping music on ios stops after a while

Post by raidho36 »

Hopefully it will run just fine in the next minor version, audio module playback code was tweaked not to stop playing in event of such failure. Try building it from source code and see if it works for you.
Post Reply

Who is online

Users browsing this forum: No registered users and 57 guests