Skip to content

Commit 1acbed1

Browse files
committed
up to 1mb voice messages autoload, fixed voice messages in app playing, version 0.5.19
1 parent 25c1981 commit 1acbed1

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

Telegram/PrepareLinux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
AppVersionStr=0.5.18
2-
AppVersion=5018
1+
AppVersionStr=0.5.19
2+
AppVersion=5019
33

44
if [ -d "./../Linux/Release/deploy/$AppVersionStr" ]; then
55
echo "Deploy folder for version $AppVersionStr already exists!"

Telegram/PrepareLinux32.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
AppVersionStr=0.5.18
2-
AppVersion=5018
1+
AppVersionStr=0.5.19
2+
AppVersion=5019
33

44
if [ -d "./../Linux/Release/deploy/$AppVersionStr" ]; then
55
echo "Deploy folder for version $AppVersionStr already exists!"

Telegram/PrepareMac.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
AppVersionStr=0.5.18
2-
AppVersion=5018
1+
AppVersionStr=0.5.19
2+
AppVersion=5019
33

44
if [ -d "./../Mac/Release/deploy/$AppVersionStr" ]; then
55
echo "Deploy folder for version $AppVersionStr already exists!"

Telegram/Setup.iss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#define MyAppShortName "Telegram"
55
#define MyAppName "Telegram Win (Unofficial)"
6-
#define MyAppVersion "0.5.18"
7-
#define MyAppVersionZero "0.5.18"
8-
#define MyAppFullVersion "0.5.18.0"
6+
#define MyAppVersion "0.5.19"
7+
#define MyAppVersionZero "0.5.19"
8+
#define MyAppFullVersion "0.5.19.0"
99
#define MyAppPublisher "Telegram (Unofficial)"
1010
#define MyAppURL "https://tdesktop.com"
1111
#define MyAppExeName "Telegram.exe"

Telegram/SourceFiles/audio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ void VoiceMessagesLoader::onLoad(AudioData *audio) {
663663
alSourceQueueBuffers(m.source, 1, m.buffers + m.nextBuffer);
664664
m.skipEnd -= samplesAdded;
665665

666-
m.nextBuffer = (m.nextBuffer + 1) & 3;
666+
m.nextBuffer = (m.nextBuffer + 1) % 3;
667667

668668
if (!_checkALError()) {
669669
m.state = VoiceMessageStopped;

Telegram/SourceFiles/config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://tdesktop.com
1717
*/
1818
#pragma once
1919

20-
static const int32 AppVersion = 5018;
21-
static const wchar_t *AppVersionStr = L"0.5.18";
20+
static const int32 AppVersion = 5019;
21+
static const wchar_t *AppVersionStr = L"0.5.19";
2222
#ifdef Q_OS_WIN
2323
static const wchar_t *AppName = L"Telegram Win (Unofficial)";
2424
#else
@@ -79,7 +79,7 @@ enum {
7979
AudioVoiceMsgFrequency = 48000, // 48 kHz
8080
AudioVoiceMsgChannels = 2, // stereo
8181
AudioVoiceMsgBufferSize = 1024 * 1024, // 1 Mb buffers
82-
AudioVoiceMsgInMemory = 256 * 1024, // 256 kb audio is hold in memory and auto loaded
82+
AudioVoiceMsgInMemory = 1024 * 1024, // 1 Mb audio is hold in memory and auto loaded
8383
};
8484

8585
#ifdef Q_OS_WIN

Telegram/Telegram.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundlePackageType</key>
1212
<string>APPL</string>
1313
<key>CFBundleShortVersionString</key>
14-
<string>0.5.18</string>
14+
<string>0.5.19</string>
1515
<key>CFBundleSignature</key>
1616
<string>????</string>
1717
<key>NOTE</key>

Telegram/Telegram.rc

0 Bytes
Binary file not shown.

Telegram/Telegram.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@
14881488
buildSettings = {
14891489
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
14901490
COPY_PHASE_STRIP = NO;
1491-
CURRENT_PROJECT_VERSION = 0.5.18;
1491+
CURRENT_PROJECT_VERSION = 0.5.19;
14921492
DEBUG_INFORMATION_FORMAT = dwarf;
14931493
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
14941494
GCC_OPTIMIZATION_LEVEL = 0;
@@ -1506,7 +1506,7 @@
15061506
buildSettings = {
15071507
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
15081508
COPY_PHASE_STRIP = YES;
1509-
CURRENT_PROJECT_VERSION = 0.5.18;
1509+
CURRENT_PROJECT_VERSION = 0.5.19;
15101510
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
15111511
GCC_OPTIMIZATION_LEVEL = fast;
15121512
GCC_PREFIX_HEADER = ./SourceFiles/stdafx.h;
@@ -1531,10 +1531,10 @@
15311531
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
15321532
CODE_SIGN_IDENTITY = "";
15331533
COPY_PHASE_STRIP = NO;
1534-
CURRENT_PROJECT_VERSION = 0.5.18;
1534+
CURRENT_PROJECT_VERSION = 0.5.19;
15351535
DEBUG_INFORMATION_FORMAT = dwarf;
15361536
DYLIB_COMPATIBILITY_VERSION = 0.5;
1537-
DYLIB_CURRENT_VERSION = 0.5.18;
1537+
DYLIB_CURRENT_VERSION = 0.5.19;
15381538
FRAMEWORK_SEARCH_PATHS = "";
15391539
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
15401540
GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO;
@@ -1668,10 +1668,10 @@
16681668
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
16691669
CODE_SIGN_IDENTITY = "";
16701670
COPY_PHASE_STRIP = NO;
1671-
CURRENT_PROJECT_VERSION = 0.5.18;
1671+
CURRENT_PROJECT_VERSION = 0.5.19;
16721672
DEBUG_INFORMATION_FORMAT = dwarf;
16731673
DYLIB_COMPATIBILITY_VERSION = 0.5;
1674-
DYLIB_CURRENT_VERSION = 0.5.18;
1674+
DYLIB_CURRENT_VERSION = 0.5.19;
16751675
FRAMEWORK_SEARCH_PATHS = "";
16761676
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
16771677
GCC_LINK_WITH_DYNAMIC_LIBRARIES = NO;

0 commit comments

Comments
 (0)