Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Convert to Mac disable my audio controller?

wdfarmerwdfarmer Posts: 2Member
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 Posts: 9,934Member, Sous Chef, Senior Sous-Chef
    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.

    It's not my fault I never learned to take responsibility for anything. ;)

  • wdfarmerwdfarmer Posts: 2Member
    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 Posts: 542Member, PRO
    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 Posts: 1Member
    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
This discussion has been closed.