Fixes audio for Mac

- Microphone issue when launching app from .app that comes from permission
- Unresponsive gain sliders due to not refreshing links when devices selection change
- Implement control volume audio
This commit is contained in:
Julien Wadel 2020-04-03 17:27:15 +02:00
parent db332fb166
commit ef6c1675db
5 changed files with 8 additions and 2 deletions

View file

@ -52,5 +52,7 @@
<string>True</string>
<key>NSCameraUsageDescription</key>
<string>Streaming Video between devices</string>
<key>NSMicrophoneUsageDescription</key>
<string>Streaming Audio between devices</string>
</dict>
</plist>

View file

@ -287,6 +287,9 @@ void SettingsModel::setPlaybackDevice (const QString &device) {
Utils::appStringToCoreString(device)
);
emit playbackDeviceChanged(device);
if (mSimpleCaptureGraph && mSimpleCaptureGraph->isRunning()) {
createCaptureGraph();
}
}
// -----------------------------------------------------------------------------

View file

@ -63,6 +63,7 @@ SoundPlayer::SoundPlayer (QObject *parent) : QObject(parent) {
mForceCloseTimer->setInterval(ForceCloseTimerInterval);
QObject::connect(mForceCloseTimer, &QTimer::timeout, this, &SoundPlayer::handleEof);
mHandlers = make_shared<SoundPlayer::Handlers>(this);
// Connection to rebuilding player when changing ringer selection. This player is only for Ringer.
QObject::connect(settingsModel, &SettingsModel::ringerDeviceChanged, this, [this] {
rebuildInternalPlayer();
});

View file

@ -173,7 +173,7 @@ TabContainer {
label: qsTr('ringerDeviceLabel')
ComboBox {
enabled: !SettingsModel.isInCall
enabled: !SettingsModel.isInCall
currentIndex: Utils.findIndex(model, function (device) {
return device === SettingsModel.ringerDevice
})

@ -1 +1 @@
Subproject commit 8fe3503392d455b14fd8b2fbc28fb3817a061f95
Subproject commit 1e4a8237474ed1bb20da91ce47b5ab34059ad471