Esempio n. 1
0
 public AudioGraphEventArgs(AudioUnitRenderActionFlags actionFlags,
                            MonoMac.AudioToolbox.AudioTimeStamp timeStamp,
                            int busNumber,
                            int numberFrames,
                            AudioBufferList data)
     : base(actionFlags, timeStamp, busNumber, numberFrames, data)
 {
 }
Esempio n. 2
0
        public AudioUnitEventArgs(AudioUnitRenderActionFlags actionFlags,
				  MonoMac.AudioToolbox.AudioTimeStamp timestamp,
				  int busNumber,
				  int frames,
				  AudioBufferList data)
        {
            ActionFlags = actionFlags;
            this.TimeStamp = timestamp;
            BusNumber = busNumber;
            NumberFrames = frames;
            Data = data;
        }
Esempio n. 3
0
 public AudioUnitEventArgs(AudioUnitRenderActionFlags actionFlags,
                           MonoMac.AudioToolbox.AudioTimeStamp timestamp,
                           int busNumber,
                           int frames,
                           AudioBufferList data)
 {
     ActionFlags    = actionFlags;
     this.TimeStamp = timestamp;
     BusNumber      = busNumber;
     NumberFrames   = frames;
     Data           = data;
 }
 extern static AudioQueueStatus AudioQueueDeviceTranslateTime(IntPtr AQ, ref AudioTimeStamp inTime, out AudioTimeStamp translatedTime);
 extern static AudioQueueStatus AudioQueueDeviceGetNearestStartTime(IntPtr AQ, ref AudioTimeStamp data, int flags);
 extern static AudioQueueStatus AudioQueueDeviceGetCurrentTime(IntPtr AQ, ref AudioTimeStamp time);
 extern static AudioQueueStatus AudioQueueStart(IntPtr AQ, ref AudioTimeStamp startTime);
Esempio n. 8
0
		public AudioUnitStatus TryRender(AudioUnitRenderActionFlags flags,
						AudioTimeStamp timeStamp,
						int outputBusnumber,
						int numberFrames, AudioBufferList data)
		{
			return (AudioUnitStatus) AudioUnitRender(handle,
								ref flags,
								ref timeStamp,
								outputBusnumber,
								numberFrames,
								data);
		}
 extern unsafe static AudioQueueStatus AudioQueueOfflineRender(IntPtr aq, ref AudioTimeStamp stamp, AudioQueueBuffer *buffer, int frames);
 public unsafe InputCompletedEventArgs(IntPtr audioQueueBuffer, AudioTimeStamp timeStamp, AudioStreamPacketDescription [] pdec)
 {
     IntPtrBuffer       = audioQueueBuffer;
     TimeStamp          = timeStamp;
     PacketDescriptions = pdec;
 }
Esempio n. 11
0
		static extern AudioUnitStatus AudioUnitRender(IntPtr inUnit, ref AudioUnitRenderActionFlags ioActionFlags, ref AudioTimeStamp inTimeStamp,
						  uint inOutputBusNumber, uint inNumberFrames, IntPtr ioData);
Esempio n. 12
0
		public AudioUnitStatus Render (ref AudioUnitRenderActionFlags actionFlags, AudioTimeStamp timeStamp, uint busNumber, uint numberFrames, AudioBuffers data)
		{
			return AudioUnitRender (handle, ref actionFlags, ref timeStamp, busNumber, numberFrames, (IntPtr) data);
		}
Esempio n. 13
0
		static AudioUnitStatus RenderCallbackImpl (IntPtr clientData, ref AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timeStamp, uint busNumber, uint numberFrames, IntPtr data)
		{
			GCHandle gch = GCHandle.FromIntPtr (clientData);
			var au = (AudioUnit) gch.Target;

			return au.render (actionFlags, timeStamp, busNumber, numberFrames, new AudioBuffers (data));
		}
Esempio n. 14
0
		static int renderCallback(IntPtr inRefCon, ref AudioUnitRenderActionFlags _ioActionFlags,
					  ref AudioTimeStamp _inTimeStamp,
					  int _inBusNumber,
					  int _inNumberFrames,
					  AudioBufferList _ioData)
		{
			// getting audiounit instance
			var handler = GCHandle.FromIntPtr(inRefCon);
			var inst = (AudioUnit)handler.Target;
			
			// evoke event handler with an argument
			if (inst.RenderCallback != null)  { 
				var args = new AudioUnitEventArgs(
					_ioActionFlags,
					_inTimeStamp,
					_inBusNumber,
					_inNumberFrames,
					_ioData);
				inst.RenderCallback(inst, args);
			}
			
			return 0; // noerror
		}
 public AudioQueueStatus Start(AudioTimeStamp startTime)
 {
     return(AudioQueueStart(handle, ref startTime));
 }
Esempio n. 16
0
		public void Render(AudioUnitRenderActionFlags flags,
				   AudioTimeStamp timeStamp,
				   int outputBusnumber,
				   int numberFrames, AudioBufferList data)
		{
			int err = AudioUnitRender(handle,
						  ref flags,
						  ref timeStamp,
						  outputBusnumber,
						  numberFrames,
						  data);
			if (err != 0)
				throw new AudioUnitException (err);
		}
 extern static AudioQueueStatus AudioQueueGetCurrentTime(IntPtr AQ, IntPtr timelineHandle, ref AudioTimeStamp time, ref bool discontinuty);
Esempio n. 18
0
		static extern int AudioUnitRender(IntPtr inUnit,
						  ref AudioUnitRenderActionFlags ioActionFlags,
						  ref AudioTimeStamp inTimeStamp,
						  int inOutputBusNumber,
						  int inNumberFrames,
						  AudioBufferList ioData);
Esempio n. 19
0
 extern static OSStatus AudioQueueOfflineRender(IntPtr aq, ref AudioTimeStamp stamp, IntPtr buffer, int frames);