Delegate method when silent id activated

In ios 5 and 6 apple stop support a way to check if silent switch is on or off. So I check the interval from when start until when finish and if less than half second I return that play audio failed due to silent switch.