|
@@ -243,8 +243,10 @@ export function setAudioInputDeviceAndUpdateSettings(deviceId) {
|
243
|
243
|
* @returns {Function}
|
244
|
244
|
*/
|
245
|
245
|
export function setAudioOutputDevice(deviceId) {
|
246
|
|
- return function(dispatch) {
|
247
|
|
- return setAudioOutputDeviceId(deviceId, dispatch);
|
|
246
|
+ return function(dispatch, getState) {
|
|
247
|
+ const deviceLabel = getDeviceLabelById(getState(), deviceId, 'audioOutput');
|
|
248
|
+
|
|
249
|
+ return setAudioOutputDeviceId(deviceId, dispatch, true, deviceLabel);
|
248
|
250
|
};
|
249
|
251
|
}
|
250
|
252
|
|