Пример #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
     
            /*
            var path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            path = System.IO.Path.Combine(path, "loop_stereo.aif"); // loop_mono.wav
            if (!System.IO.File.Exists(path))
                throw new ArgumentException("file not found; " + path);*/

            _url = MonoTouch.CoreFoundation.CFUrl.FromFile("output.aif");
            _player = new RemoteIOPlayThrough();
            
            _playButton.TouchDown += new EventHandler(_playButton_TouchDown);
            _stopButton.TouchDown += new EventHandler(_stopButton_TouchDown);

            _player.Play();
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            /*
             * var path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
             * path = System.IO.Path.Combine(path, "loop_stereo.aif"); // loop_mono.wav
             * if (!System.IO.File.Exists(path))
             *  throw new ArgumentException("file not found; " + path);*/

            _url    = MonoTouch.CoreFoundation.CFUrl.FromFile("output.aif");
            _player = new RemoteIOPlayThrough();

            _playButton.TouchDown += new EventHandler(_playButton_TouchDown);
            _stopButton.TouchDown += new EventHandler(_stopButton_TouchDown);

            _player.Play();
        }