/**************************************************/ private void fetchAudioInputs() { audioInputs = new List<V4LAudioInput>(); APIv2.v4l2_audio cur = new APIv2.v4l2_audio(); cur.index = 0; while (ioControl.EnumerateAudioInputs(ref cur) == 0) { audioInputs.Add(new V4LAudioInput(this, cur)); cur.index++; } }
public V4LAudioInput(V4LDevice device, APIv2.v4l2_audio input) { this.device = device; this.input = input; }
internal V4LAudioInput(V4LDevice device, v4l2_audio input) { this.device = device; this.input = input; }
public int EnumerateAudioInputs(ref v4l2_audio input) { return ioctl(deviceHandle, v4l2_operation.EnumerateAudioInputs, ref input); }
private static extern int ioctl(int device, v4l2_operation request, ref v4l2_audio argp);
public int SetAudioInput(ref v4l2_audio input) { return ioctl(deviceHandle, v4l2_operation.SetAudioInput, ref input); }
internal V4LAudioInput(v4l2_audio input) { this.input = input; }