Stopping one music track, starting another

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
philnelson
Prole
Posts: 48
Joined: Sun Feb 01, 2009 3:32 am

Stopping one music track, starting another

Post by philnelson »

Is there any way to do this in 0.5.0? In my load() I've got love.audio.play(overWorldTheme,0), and I'd like to change the music when the player enters different rooms. How would you accomplish this?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Stopping one music track, starting another

Post by bartbes »

love.audio.stop()
philnelson
Prole
Posts: 48
Joined: Sun Feb 01, 2009 3:32 am

Re: Stopping one music track, starting another

Post by philnelson »

I was under the impression that love.audio.stop stopped ALL audio playback. There are sound effects to be considered. IS there no other good way?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Stopping one music track, starting another

Post by bartbes »

Not in 0.5.0, but shouldn't all sounds stop anyway when you switch room?
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Stopping one music track, starting another

Post by TechnoCat »

There is a much better sound interface in 0.6
http://love2d.org/potato/love_audio_stop_2.html
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests