示例#1
0
文件: Adapter.cs 项目: dxball/v4l-net
        /// <summary>
        /// Collects all available audio outputs from the device.
        /// </summary>
        private void fetchAudioOutputs() {
            audioOutputs = new Core.SearchableList<Analog.Audio.Output>();
            v4l2_audioout cur = new v4l2_audioout();

            cur.index = 0;
            while(ioControl.EnumerateAudioOutputs(ref cur) == 0) {
                audioOutputs.Add(new Analog.Audio.Output(cur));
                cur.index++;
            }
        }
示例#2
0
			ioctl(int device, v4l2_operation request, ref v4l2_audioout argp);
示例#3
0
		public int EnumerateAudioOutputs(ref v4l2_audioout output)
		{
			return ioctl(deviceHandle, v4l2_operation.EnumerateAudioOutputs, ref output);
		}
示例#4
0
		public int SetAudioOutput(ref v4l2_audioout output)
		{
			return ioctl(deviceHandle, v4l2_operation.SetAudioOutput, ref output);
		}
示例#5
0
		internal Output(v4l2_audioout output)
		{
			this.output = output;
		}
示例#6
0
 private static extern int ioctl(int device, v4l2_operation request, ref v4l2_audioout argp);