mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
up to 1mb voice messages autoload, fixed voice messages in app playing, version 0.5.19
This commit is contained in:
@@ -663,7 +663,7 @@ void VoiceMessagesLoader::onLoad(AudioData *audio) {
|
||||
alSourceQueueBuffers(m.source, 1, m.buffers + m.nextBuffer);
|
||||
m.skipEnd -= samplesAdded;
|
||||
|
||||
m.nextBuffer = (m.nextBuffer + 1) & 3;
|
||||
m.nextBuffer = (m.nextBuffer + 1) % 3;
|
||||
|
||||
if (!_checkALError()) {
|
||||
m.state = VoiceMessageStopped;
|
||||
|
@@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://tdesktop.com
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
static const int32 AppVersion = 5018;
|
||||
static const wchar_t *AppVersionStr = L"0.5.18";
|
||||
static const int32 AppVersion = 5019;
|
||||
static const wchar_t *AppVersionStr = L"0.5.19";
|
||||
#ifdef Q_OS_WIN
|
||||
static const wchar_t *AppName = L"Telegram Win (Unofficial)";
|
||||
#else
|
||||
@@ -79,7 +79,7 @@ enum {
|
||||
AudioVoiceMsgFrequency = 48000, // 48 kHz
|
||||
AudioVoiceMsgChannels = 2, // stereo
|
||||
AudioVoiceMsgBufferSize = 1024 * 1024, // 1 Mb buffers
|
||||
AudioVoiceMsgInMemory = 256 * 1024, // 256 kb audio is hold in memory and auto loaded
|
||||
AudioVoiceMsgInMemory = 1024 * 1024, // 1 Mb audio is hold in memory and auto loaded
|
||||
};
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
Reference in New Issue
Block a user