StickSports/ANE-Silent-Switch — Issue #1: Sounds still play when calling SilentSwitch.apply()
Author: starpause
Created: 2012-02-17 22:22:29+00:00
State: open

On my iPhone 4G (iOS5.0.1) sounds still play when my mute switch is down.

I'm targeting AIR 3.1.

I've included the SWC and ANE in my project via the project properties in Flash Builder (Project > Properties > ActionScript Build Path > Library path (Add SWC) > Native Extensions (Add ANE). I've also called the extension out by ID in my app descriptor.

My code is something like

```as3
import com.sticksports.nativeExtensions.SilentSwitch;

[Embed(source="assets/mp3/suck-off.mp3")]
private static const suckOff:Class;
private var suckOffSound:Sound = new suckOff() as Sound;
private var sndChannel:SoundChannel;

public function playSuckOff():void
{
sndChannel=suckOffSound.play();
sndChannel.soundTransform = new SoundTransform(.5,0);
SilentSwitch.apply();
}

```

Any ideas? Thanks!