Пример #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 ();
		}