Convert to Mac disable my audio controller?

wdfarmerwdfarmer Member Posts: 2
edited September 2012 in Working with GS (PC)
Hey all!

I have some logic that I built for a universal audio on/off switch. Basically:

If touch is pressed:
Change Attribute game.Music Play?
(game.Music Play?+1)%2

Works just perfect on my Windows Machine, no problems at all. But when I exported the game do do a test build on the iPhone, it stripped this bit of logic completely out. Peeved... I rebuilt it all inside GS for Mac but the same logic would not control the audio correctly.... Is there something wrong? I figured one universal Boolean toggle (game.Music Play?) would be the best way for everything to look to for t/f audio... but Maybe I am incorrect.

Anyone else experience something like this?


  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I don't thing the modulo Thing or the +1 stuff works for booleans. At least in the Mac version. I use integers for those kind of on off switches.
  • wdfarmerwdfarmer Member Posts: 2
    Alrighty - I was wondering since the Modulo just plain DIDNT work when it was ported over... I'll try and make it an integer and see what happens! Thanks tenrdrmer

  • JustMe74JustMe74 Member, PRO Posts: 542
    GS seems to be inconsistent in its support of Booleans for some strange reason. I too typically use Integers (with a 0 or 1 value) to avoid these types of issues.
  • AntonyWhiteAntonyWhite Member Posts: 1
    edited December 2012
    You probably updated the HD audio device on your video card
    causing it to be set as default.
    Check start/control panel/sounds and audio devices.
    On the playback tab,make sure the correct device is set as default.
    If you are connected to the motherboard audio,then it is probably
    realtek,though it could be others.
    Realtek audio is the most common
    More help in how-to-mac
Sign In or Register to comment.