2
0
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:
23rd
2025-08-12 15:24:08 +03:00
parent 5a29a7d2a3
commit 15e4d86e92
4 changed files with 21 additions and 10 deletions

View File

@@ -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(