service/mic: actually use the specified device

This commit is contained in:
vvanelslande 2019-11-01 13:33:06 -05:00
parent 5fa71d425b
commit e1e136d72f
7 changed files with 46 additions and 10 deletions

View file

@ -11,6 +11,8 @@
namespace Frontend::Mic {
constexpr char default_device_name[] = "Default";
enum class Signedness : u8 {
Signed,
Unsigned,

View file

@ -326,7 +326,7 @@ struct MIC_U::Impl {
break;
case Settings::MicInputType::Real:
#if HAVE_CUBEB
new_mic = std::make_unique<AudioCore::CubebInput>();
new_mic = std::make_unique<AudioCore::CubebInput>(Settings::values.mic_input_device);
#else
new_mic = std::make_unique<Frontend::Mic::NullMic>();
#endif