From 0cdc3599318f05a820b3c936f83c98b4b3d11567 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 May 2025 19:28:25 +0200 Subject: Fix audio capture not working with noisetorch if combined with another source with some audio devices. Remove the ability to set audio track name for now. If you need this, email me --- src/args_parser.c | 1 - src/main.cpp | 6 ------ 2 files changed, 7 deletions(-) (limited to 'src') diff --git a/src/args_parser.c b/src/args_parser.c index 546d397..7aee396 100644 --- a/src/args_parser.c +++ b/src/args_parser.c @@ -229,7 +229,6 @@ static void usage_full() { printf(" -a Audio device or application to record from (pulse audio device). Can be specified multiple times. Each time this is specified a new audio track is added for the specified audio device or application.\n"); printf(" The audio device can also be \"default_output\" in which case the default output device is used, or \"default_input\" in which case the default input device is used.\n"); printf(" Multiple audio sources can be merged into one audio track by using \"|\" as a separator into one -a argument, for example: -a \"default_output|default_input\".\n"); - printf(" A name can be given to the audio track by prefixing the audio with /, for example \"track name/default_output\" or \"track name/default_output|default_input\".\n"); printf(" The audio name can also be prefixed with \"device:\", for example: -a \"device:default_output\".\n"); printf(" To record audio from an application then prefix the audio name with \"app:\", for example: -a \"app:Brave\". The application name is case-insensitive.\n"); printf(" To record audio from all applications except the provided ones prefix the audio name with \"app-inverse:\", for example: -a \"app-inverse:Brave\".\n"); diff --git a/src/main.cpp b/src/main.cpp index 0be3768..4bfd94b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1383,12 +1383,6 @@ static MergedAudioInputs parse_audio_input_arg(const char *str, const AudioDevic return result; } - const char *track_name_sep_ptr = strchr(str, '/'); - if(track_name_sep_ptr) { - result.track_name.assign(str, track_name_sep_ptr - str); - str = track_name_sep_ptr + 1; - } - split_string(str, '|', [&](const char *sub, size_t size) { AudioInput audio_input; audio_input.name.assign(sub, size); -- cgit v1.2.3-70-g09d2