mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Set mixer volume on media control change
This commit is contained in:
parent
d53932382c
commit
fb1c253992
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#include "media/system_media_controls_manager.h"
|
||||
|
||||
#include "media/audio/media_audio.h"
|
||||
#include "base/observer.h"
|
||||
#include "base/platform/base_platform_system_media_controls.h"
|
||||
#include "core/application.h"
|
||||
|
@ -246,6 +247,7 @@ SystemMediaControlsManager::SystemMediaControlsManager(
|
|||
|
||||
_controls->volumeChangeRequests(
|
||||
) | rpl::start_with_next([](float64 volume) {
|
||||
Player::mixer()->setSongVolume(volume);
|
||||
Core::App().settings().setSongVolume(volume);
|
||||
}, _lifetime);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue