MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / setInputDevice

Method setInputDevice

src/core/AudioEngine.cpp:6608–6627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6606}
6607
6608void AudioEngine::setInputDevice(const QAudioDevice& dev)
6609{
6610 m_inputDevice = dev;
6611 qCDebug(lcAudio) << "AudioEngine: input device set to" << dev.description();
6612
6613 // Persist selection
6614 auto& s = AppSettings::instance();
6615 s.setValue("AudioInputDeviceId", dev.id());
6616 s.save();
6617
6618 // Restart TX stream if running
6619 if (m_audioSource) {
6620 QHostAddress addr = m_txAddress;
6621 quint16 port = m_txPort;
6622 stopTxStream();
6623 startTxStream(addr, port);
6624 }
6625
6626 emit inputDeviceChanged();
6627}
6628
6629#ifdef Q_OS_MAC
6630void AudioEngine::setAllowBluetoothTelephonyOutput(bool on)

Callers 3

buildAudioTabMethod · 0.80

Calls 3

idMethod · 0.80
setValueMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected