Skip to content

Commit 810785c

Browse files
authored
Updated BASS libraries (#2291)
1 parent 81bb2a7 commit 810785c

File tree

9 files changed

+35
-33
lines changed

9 files changed

+35
-33
lines changed

Client/loader/MainFunctions.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -832,15 +832,15 @@ void CheckDataFiles()
832832
{
833833
const char* szMd5;
834834
const char* szFilename;
835-
} integrityCheckList[] = {{"ED3964A2AEFC227431CCCB63077BFAAC", "bass.dll"},
836-
{"A5FFF1BF0D50C7AB4737E7F729A449F6", "bass_aac.dll"},
835+
} integrityCheckList[] = {{"7B9496FAB92A79476343DDEDD4C76BAD", "bass.dll"},
836+
{"E48EA82D7A87853FA4F09F19C4E7A2C1", "bass_aac.dll"},
837837
{"BD43C88917D6234FF962B6E88B648B8C", "bass_ac3.dll"},
838838
{"03FB421991634C85D7AA7A914506381E", "bass_fx.dll"},
839839
{"E2A26F0C195B75D520D39EAC4E4C804B", "bassflac.dll"},
840-
{"E930477525750B2FFD95C634449601D4", "bassmidi.dll"},
840+
{"2DF21511EB488D860BC43C904679D4AA", "bassmidi.dll"},
841841
{"01D4265D2E8F36677822833306F8D9F0", "bassmix.dll"},
842-
{"C5C56B1000868D7275BC74F8220A0862", "bassopus.dll"},
843-
{"0CE7A9F1930591C51B35BF6AA5EC7424", "basswma.dll"},
842+
{"5E309F265D9A4769EB93D80B2A268A6B", "bassopus.dll"},
843+
{"476BDA1EE12C760A29E4EE43F593F878", "basswma.dll"},
844844
{"6E2C5DCF4EE973E69ECA39288D20C436", "tags.dll"},
845845
{"309D860FC8137E5FE9E7056C33B4B8BE", "vea.dll"},
846846
{"0602F672BA595716E64EC4040E6DE376", "vog.dll"},
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
30 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.

vendor/bass/bass.h

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ extern "C" {
5555

5656
typedef DWORD HMUSIC; // MOD music handle
5757
typedef DWORD HSAMPLE; // sample handle
58-
typedef DWORD HCHANNEL; // playing sample's channel handle
58+
typedef DWORD HCHANNEL; // sample playback handle
5959
typedef DWORD HSTREAM; // sample stream handle
6060
typedef DWORD HRECORD; // recording handle
6161
typedef DWORD HSYNC; // synchronizer handle
6262
typedef DWORD HDSP; // DSP handle
63-
typedef DWORD HFX; // DX8 effect handle
64-
typedef DWORD HPLUGIN; // Plugin handle
63+
typedef DWORD HFX; // effect handle
64+
typedef DWORD HPLUGIN; // plugin handle
6565

6666
// Error codes returned by BASS_ErrorGetCode
6767
#define BASS_OK 0 // all is OK
@@ -103,6 +103,7 @@ typedef DWORD HPLUGIN; // Plugin handle
103103
#define BASS_ERROR_ENDED 45 // the channel/file has ended
104104
#define BASS_ERROR_BUSY 46 // the device is busy
105105
#define BASS_ERROR_UNSTREAMABLE 47 // unstreamable file
106+
#define BASS_ERROR_PROTOCOL 48 // unsupported protocol
106107
#define BASS_ERROR_UNKNOWN -1 // some other mystery problem
107108

108109
// BASS_SetConfig options
@@ -157,7 +158,9 @@ typedef DWORD HPLUGIN; // Plugin handle
157158
#define BASS_CONFIG_REC_WASAPI 66
158159
#define BASS_CONFIG_ANDROID_AAUDIO 67
159160
#define BASS_CONFIG_SAMPLE_ONEHANDLE 69
161+
#define BASS_CONFIG_DEV_TIMEOUT 70
160162
#define BASS_CONFIG_NET_META 71
163+
#define BASS_CONFIG_NET_RESTRATE 72
161164

162165
// BASS_SetConfigPtr options
163166
#define BASS_CONFIG_NET_AGENT 16
@@ -249,7 +252,7 @@ typedef struct {
249252
} BASS_INFO;
250253

251254
// BASS_INFO flags (from DSOUND.H)
252-
#define DSCAPS_EMULDRIVER 0x00000020 // device does NOT have hardware DirectSound support
255+
#define DSCAPS_EMULDRIVER 0x00000020 // device does not have hardware DirectSound support
253256
#define DSCAPS_CERTIFIED 0x00000040 // device driver has been certified by Microsoft
254257

255258
#define DSCAPS_HARDWARE 0x80000000 // hardware mixed
@@ -264,7 +267,7 @@ typedef struct {
264267
} BASS_RECORDINFO;
265268

266269
// BASS_RECORDINFO flags (from DSOUND.H)
267-
#define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER // device does NOT have hardware DirectSound recording support
270+
#define DSCCAPS_EMULDRIVER DSCAPS_EMULDRIVER // device does not have hardware DirectSound recording support
268271
#define DSCCAPS_CERTIFIED DSCAPS_CERTIFIED // device driver has been certified by Microsoft
269272

270273
// defines for formats field of BASS_RECORDINFO (from MMSYSTEM.H)
@@ -317,11 +320,11 @@ typedef struct {
317320
#define BASS_SAMPLE_OVER_POS 0x20000 // override longest playing
318321
#define BASS_SAMPLE_OVER_DIST 0x30000 // override furthest from listener (3D only)
319322

320-
#define BASS_STREAM_PRESCAN 0x20000 // enable pin-point seeking/length (MP3/MP2/MP1)
321-
#define BASS_STREAM_AUTOFREE 0x40000 // automatically free the stream when it stop/ends
322-
#define BASS_STREAM_RESTRATE 0x80000 // restrict the download rate of internet file streams
323-
#define BASS_STREAM_BLOCK 0x100000 // download/play internet file stream in small blocks
324-
#define BASS_STREAM_DECODE 0x200000 // don't play the stream, only decode (BASS_ChannelGetData)
323+
#define BASS_STREAM_PRESCAN 0x20000 // scan file for accurate seeking and length
324+
#define BASS_STREAM_AUTOFREE 0x40000 // automatically free the stream when it stops/ends
325+
#define BASS_STREAM_RESTRATE 0x80000 // restrict the download rate of internet file stream
326+
#define BASS_STREAM_BLOCK 0x100000 // download internet file stream in small blocks
327+
#define BASS_STREAM_DECODE 0x200000 // don't play the stream, only decode
325328
#define BASS_STREAM_STATUS 0x800000 // give server status info (HTTP/ICY tags) in DOWNLOADPROC
326329

327330
#define BASS_MP3_IGNOREDELAY 0x200 // ignore LAME/Xing/VBRI/iTunes delay & padding info
@@ -367,8 +370,8 @@ typedef struct {
367370
#define BASS_SPEAKER_REAR2LEFT BASS_SPEAKER_REAR2|BASS_SPEAKER_LEFT
368371
#define BASS_SPEAKER_REAR2RIGHT BASS_SPEAKER_REAR2|BASS_SPEAKER_RIGHT
369372

370-
#define BASS_ASYNCFILE 0x40000000
371-
#define BASS_UNICODE 0x80000000
373+
#define BASS_ASYNCFILE 0x40000000 // read file asynchronously
374+
#define BASS_UNICODE 0x80000000 // UTF-16
372375

373376
#define BASS_RECORD_PAUSE 0x8000 // start recording paused
374377
#define BASS_RECORD_ECHOCANCEL 0x2000
@@ -385,12 +388,12 @@ typedef struct {
385388
typedef struct {
386389
DWORD freq; // default playback rate
387390
DWORD chans; // channels
388-
DWORD flags; // BASS_SAMPLE/STREAM/MUSIC/SPEAKER flags
391+
DWORD flags;
389392
DWORD ctype; // type of channel
390393
DWORD origres; // original resolution
391-
HPLUGIN plugin; // plugin
392-
HSAMPLE sample; // sample
393-
const char *filename; // filename
394+
HPLUGIN plugin;
395+
HSAMPLE sample;
396+
const char *filename;
394397
} BASS_CHANNELINFO;
395398

396399
#define BASS_ORIGRES_FLOAT 0x10000
@@ -411,7 +414,7 @@ typedef struct {
411414
#define BASS_CTYPE_STREAM_SAMPLE 0x1000a
412415
#define BASS_CTYPE_STREAM_DUMMY 0x18000
413416
#define BASS_CTYPE_STREAM_DEVICE 0x18001
414-
#define BASS_CTYPE_STREAM_WAV 0x40000 // WAVE flag, LOWORD=codec
417+
#define BASS_CTYPE_STREAM_WAV 0x40000 // WAVE flag (LOWORD=codec)
415418
#define BASS_CTYPE_STREAM_WAV_PCM 0x50001
416419
#define BASS_CTYPE_STREAM_WAV_FLOAT 0x50003
417420
#define BASS_CTYPE_MUSIC_MOD 0x20000
@@ -461,8 +464,8 @@ typedef struct BASS_3DVECTOR {
461464
#define BASS_3DALG_LIGHT 3
462465

463466
// BASS_SampleGetChannel flags
464-
#define BASS_SAMCHAN_NEW 1
465-
#define BASS_SAMCHAN_STREAM 2
467+
#define BASS_SAMCHAN_NEW 1 // get a new playback channel
468+
#define BASS_SAMCHAN_STREAM 2 // create a stream
466469

467470
typedef DWORD (CALLBACK STREAMPROC)(HSTREAM handle, void *buffer, DWORD length, void *user);
468471
/* User stream callback function.
@@ -621,11 +624,11 @@ RETURN : TRUE = continue recording, FALSE = stop */
621624
#define BASS_DATA_FFT_NYQUIST 0x100 // FFT flag: return extra Nyquist value
622625

623626
// BASS_ChannelGetLevelEx flags
624-
#define BASS_LEVEL_MONO 1
625-
#define BASS_LEVEL_STEREO 2
626-
#define BASS_LEVEL_RMS 4
627-
#define BASS_LEVEL_VOLPAN 8
628-
#define BASS_LEVEL_NOREMOVE 16
627+
#define BASS_LEVEL_MONO 1 // get mono level
628+
#define BASS_LEVEL_STEREO 2 // get stereo level
629+
#define BASS_LEVEL_RMS 4 // get RMS levels
630+
#define BASS_LEVEL_VOLPAN 8 // apply VOL/PAN attributes to the levels
631+
#define BASS_LEVEL_NOREMOVE 16 // don't remove data from recording buffer
629632

630633
// BASS_ChannelGetTags types : what's returned
631634
#define BASS_TAG_ID3 0 // ID3v1 tags : TAG_ID3 structure
@@ -829,7 +832,7 @@ typedef const WAVEFORMATEX *LPCWAVEFORMATEX;
829832
#define BASS_POS_OGG 3 // OGG bitstream number
830833
#define BASS_POS_END 0x10 // trimmed end position
831834
#define BASS_POS_LOOP 0x11 // loop start positiom
832-
#define BASS_POS_FLUSH 0x1000000 // flag: flush decoder's output buffers
835+
#define BASS_POS_FLUSH 0x1000000 // flag: flush decoder/FX buffers
833836
#define BASS_POS_RESET 0x2000000 // flag: reset user file buffers
834837
#define BASS_POS_RELATIVE 0x4000000 // flag: seek relative to the current position
835838
#define BASS_POS_INEXACT 0x8000000 // flag: allow seeking to inexact position
@@ -987,7 +990,7 @@ BOOL BASSDEF(BASS_GetInfo)(BASS_INFO *info);
987990
BOOL BASSDEF(BASS_Start)(void);
988991
BOOL BASSDEF(BASS_Stop)(void);
989992
BOOL BASSDEF(BASS_Pause)(void);
990-
BOOL BASSDEF(BASS_IsStarted)(void);
993+
DWORD BASSDEF(BASS_IsStarted)(void);
991994
BOOL BASSDEF(BASS_Update)(DWORD length);
992995
float BASSDEF(BASS_GetCPU)(void);
993996
BOOL BASSDEF(BASS_SetVolume)(float volume);

vendor/bass/basswma.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
BASSWMA 2.4 C/C++ header file
3-
Copyright (c) 2002-2018 Un4seen Developments Ltd.
3+
Copyright (c) 2002-2021 Un4seen Developments Ltd.
44
55
See the BASSWMA.CHM file for more detailed documentation
66
*/
@@ -34,7 +34,6 @@ typedef DWORD HWMENCODE; // WMA encoding handle
3434

3535
// Additional BASS_SetConfig options
3636
#define BASS_CONFIG_WMA_PRECHECK 0x10100
37-
#define BASS_CONFIG_WMA_PREBUF 0x10101
3837
#define BASS_CONFIG_WMA_BASSFILE 0x10103
3938
#define BASS_CONFIG_WMA_NETSEEK 0x10104
4039
#define BASS_CONFIG_WMA_VIDEO 0x10105

vendor/bass/lib/bass.lib

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)