Allow recording app audio with -a, deprecate -aa and -aai

Use -a "app:brave" instead of -aa "brave".
Use -a "app-inverse:brave" instead of -aai "brave".

This now allows merging audio devices and app audio into the same audio
track.
This commit is contained in:
dec05eba
2024-11-20 19:09:40 +01:00
parent 6e0f5413d9
commit cbf4cba5a9
5 changed files with 301 additions and 161 deletions

View File

@@ -34,6 +34,8 @@ enum class AudioInputType {
struct AudioInput {
std::string name;
std::string description;
AudioInputType type = AudioInputType::DEVICE;
bool inverted = false;
};
struct AudioDevices {
@@ -44,8 +46,6 @@ struct AudioDevices {
struct MergedAudioInputs {
std::vector<AudioInput> audio_inputs;
AudioInputType type = AudioInputType::DEVICE;
bool inverted = false;
};
typedef enum {