Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
setVolume not working — Gideros Forum

setVolume not working

DikkesnoekDikkesnoek Member
edited June 2015 in General questions
Hello,

I am trying to fade a song out in the onEnterFrame() event handler. Every xx frames
I want to reduce the volume with some percent. When I test this at the beginning of
the program:

local gameSong = Sound.new("gamesong.mp3")
local gameSongSoundChannel = gameSong:play(0, true, false)
gameSongSoundChannel:setVolume(0.0)

The song will play at full volume.

Any ideas?

Thanks,

Marc

Comments

Sign In or Register to comment.