Detect ringer (mute button) position on iOS 5?
===

I would like to detect the silent button's position (the button that switches the volume on or off). I'm making an app that plays a sound in the background, but I would like to detect if the ringer is activated so I won't play the sound. After all, if the user put his phone's volume at off, he doesn't want my app to play loud sounds.

By the way, I need to know the button's position for all iOS devices, not only iPhone.

Thanks in advance.