2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

openal audio and voice messages prepared for os x

This commit is contained in:
John Preston
2014-09-04 16:23:28 +04:00
parent 9bbc99a6b4
commit 57cbc06fd8
10 changed files with 109 additions and 20 deletions

View File

@@ -850,7 +850,7 @@ void MainWidget::audioLoadProgress(mtpFileLoader *loader) {
audio->finish();
QString already = audio->already();
bool play = audio->openOnSave > 0 && audioVoice();
if (!already.isEmpty() && audio->openOnSave || !audio->data.isEmpty() && play) {
if ((!already.isEmpty() && audio->openOnSave) || (!audio->data.isEmpty() && play)) {
if (play) {
AudioData *playing = 0;
VoiceMessageState state = VoiceMessageStopped;