示例#1
0
        void endInterruption(AVAudioSessionInterruptionFlags flags)
        {
            NSError error = null;

            AVAudioSession.SharedInstance().SetActive(true, out error);

            if (error != null)
            {
                Console.WriteLine("Unable to reactivate the audio session");
                return;
            }

            if ((flags & AVAudioSessionInterruptionFlags.ShouldResume) != null)
            {
                restartAudioProcessingGraph();
            }
        }
示例#2
0
		void endInterruption (AVAudioSessionInterruptionFlags flags)
		{
			NSError error = null;
			AVAudioSession.SharedInstance ().SetActive (true, out error);

			if (error != null) {
				Console.WriteLine ("Unable to reactivate the audio session");
				return;
			}

			if ((flags & AVAudioSessionInterruptionFlags.ShouldResume) != null)
				restartAudioProcessingGraph ();
		}