DEVICE AUDIO SYNC Problem

PeeCeePeeCee Member Posts: 107
edited November -1 in Working with GS (Mac)
Hi All.

I've got my own volume controls setup so user can change music volume as needed but im finding when i set change attribute to game.device.audio.volume.music to musicvolume attribute that is isnt working.

whats the best way to make sure device volume reflects attribute value and always be in sync

thanks

Comments

  • POMPOM Member Posts: 2,599
    Do you change this attribute in the initial scene ?

    iv'e found that if the first thing you do in the game is to adjust the volume then the engine just ignore that , like when you start your game with change volume to 0.6 , its still on 1.

    What i did to overcome this bug is put a rule :
    when self time > 1
    make the change .
    play music .

    This works for me , i hope it works for you 2.

    Roy.
  • PeeCeePeeCee Member Posts: 107
    Hi again.

    I've got this working only on first intial scene by
    checking with rule if game.audio.music volum not equal to game.musicvolume then change
    attribute for device.game.musicvolume to game.musicvolume

    however i cant get other scene to play music on game.musicvolume.

    whats the way around this.

    please help
  • PeeCeePeeCee Member Posts: 107
    I've worked this out.(RESOLVED)

    for anyone else having a similar problem do this
    set change attribute after you play music not before.
Sign In or Register to comment.