/// <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++; } }
ioctl(int device, v4l2_operation request, ref v4l2_audioout argp);
public int EnumerateAudioOutputs(ref v4l2_audioout output) { return ioctl(deviceHandle, v4l2_operation.EnumerateAudioOutputs, ref output); }
public int SetAudioOutput(ref v4l2_audioout output) { return ioctl(deviceHandle, v4l2_operation.SetAudioOutput, ref output); }
internal Output(v4l2_audioout output) { this.output = output; }
private static extern int ioctl(int device, v4l2_operation request, ref v4l2_audioout argp);