Add option to select audio source

Pass --audio-source=mic to capture the microphone instead of the device
audio output.
This commit is contained in:
Romain Vimont 2023-05-30 21:29:05 +02:00
parent 360f2fea1e
commit ff5ffc892f
14 changed files with 125 additions and 7 deletions

View file

@ -136,7 +136,7 @@ public final class Server {
if (audio) {
AudioCodec audioCodec = options.getAudioCodec();
AudioCapture audioCapture = new AudioCapture();
AudioCapture audioCapture = new AudioCapture(options.getAudioSource());
Streamer audioStreamer = new Streamer(connection.getAudioFd(), audioCodec, options.getSendCodecMeta(),
options.getSendFrameMeta());
AsyncProcessor audioRecorder;