Help me with some audio!

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
Chief
Party member
Posts: 101
Joined: Fri Mar 12, 2010 7:57 am
Location: Norway, 67° north

Help me with some audio!

Post by Chief »

Could someone explain to me how this function work/ what it is for? Surround? :huh:

love.audio.setPosition( x, y, z )

I've tried changing the position, but it doesn't give any effect with headphones on atleast!

Code: Select all

sound = love.audio.newSource("random.wav", "static")
	sound:setVolume( 1.0 )
	sound:setPitch( 1.0 )
	love.audio.setPosition( 0, 100.0, 0 )
	love.audio.play(sound)
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Help me with some audio!

Post by nevon »

Bartbes on IRC:
yes, it does do something
but only on mono sounds
User avatar
Chief
Party member
Posts: 101
Joined: Fri Mar 12, 2010 7:57 am
Location: Norway, 67° north

Re: Help me with some audio!

Post by Chief »

nevon wrote:
Bartbes on IRC:
yes, it does do something
but only on mono sounds
All i needed to know! :P

Case clooooosed!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 8 guests