If the sound you're wanting to mute is your own sound/music that you have in your iOS app itself and playing you can use AVAudioPlayer
like so:
AVAudioPlayer _player;
public void PlayMusic(string file)
{
NSError error;
_player = new AVAudioPlayer(new NSUrl(file + ".mp3"), "mp3", out error);
if (error != null)
{
Debu.WriteLine("Error in PlayTheme, {0}: {1}", file, error.LocalizedDescription);
return;
}
_player.Volume = 0.6f;
_player.NumberOfLoops = -1;
_player.Play();
}
public void StopMusic()
{
if (_player != null)
{
_player.Stop();
_player.Dispose();
_player = null;
}
}
Also, depending on how you are wanting to control your audio you could use the MPMusicPlayerController.ApplicationMusicPlayer
instead. Here is the Apple doc about it.
However, if you are looking to mute iOS system audio itself it is technically possible by using the private api, but by doing so I don't think Apple would approve your app when you try to release it in the app store.