mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Added ability to override volume in media audio tracks.
This commit is contained in:
@@ -967,8 +967,11 @@ void System::notifySettingsChanged(ChangeType type) {
|
||||
return _settingsChanged.fire(std::move(type));
|
||||
}
|
||||
|
||||
void System::playSound(not_null<Main::Session*> session, DocumentId id) {
|
||||
lookupSound(&session->data(), id)->playOnce();
|
||||
void System::playSound(
|
||||
not_null<Main::Session*> session,
|
||||
DocumentId id,
|
||||
float64 volumeOverride) {
|
||||
lookupSound(&session->data(), id)->playOnce(volumeOverride);
|
||||
}
|
||||
|
||||
Manager::DisplayOptions Manager::getNotificationOptions(
|
||||
|
Reference in New Issue
Block a user