| 6606 | } |
| 6607 | |
| 6608 | void 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 |
| 6630 | void AudioEngine::setAllowBluetoothTelephonyOutput(bool on) |
no test coverage detected