X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=audio_mixer.h;h=3a1334a66656e9979cc8ca3148f3c7761acced5e;hb=5cb4274907d32fb8946558988461224196c2be59;hp=7ae5464d44ab61fe336e28603460f693cc9a33ea;hpb=a564f192f808841ad8dfa9a4aa6c8db3335bd6fd;p=nageru diff --git a/audio_mixer.h b/audio_mixer.h index 7ae5464..3a1334a 100644 --- a/audio_mixer.h +++ b/audio_mixer.h @@ -76,8 +76,18 @@ public: return alsa_pool.get_card_state(index); } + // See comments on ALSAPool::create_dead_card(). + DeviceSpec create_dead_card(const std::string &name, const std::string &info, unsigned num_channels) + { + unsigned dead_card_index = alsa_pool.create_dead_card(name, info, num_channels); + return DeviceSpec{InputSourceType::ALSA_INPUT, dead_card_index}; + } + void set_display_name(DeviceSpec device_spec, const std::string &name); + // Note: The card should be held (currently this isn't enforced, though). + void serialize_device(DeviceSpec device_spec, DeviceSpecProto *device_spec_proto); + void set_input_mapping(const InputMapping &input_mapping); InputMapping get_input_mapping() const;