diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 17:06:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 17:06:04 +0300 |
commit | 1039b2829a264280493ba0fa979214fe024dc70c (patch) | |
tree | 8fa6a60eb46627582c372b56a4a1d4754d6732c3 /plugins/BASS_interface/src | |
parent | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (diff) |
WORD -> uint16_t
Diffstat (limited to 'plugins/BASS_interface/src')
-rw-r--r-- | plugins/BASS_interface/src/Bass.h | 20 | ||||
-rw-r--r-- | plugins/BASS_interface/src/Main.cpp | 6 |
2 files changed, 13 insertions, 13 deletions
diff --git a/plugins/BASS_interface/src/Bass.h b/plugins/BASS_interface/src/Bass.h index fab48d6120..271be94d09 100644 --- a/plugins/BASS_interface/src/Bass.h +++ b/plugins/BASS_interface/src/Bass.h @@ -19,7 +19,7 @@ typedef unsigned __int64 QWORD; #define WINAPI #define CALLBACK typedef uint8_t uint8_t; -typedef uint16_t WORD; +typedef uint16_t uint16_t; typedef uint32_t DWORD; typedef uint64_t QWORD; #ifdef __OBJC__ @@ -34,9 +34,9 @@ typedef int BOOL; #endif #define LOBYTE(a) (uint8_t)(a) #define HIBYTE(a) (uint8_t)((a)>>8) -#define LOWORD(a) (WORD)(a) -#define HIWORD(a) (WORD)((a)>>16) -#define MAKEWORD(a,b) (WORD)(((a)&0xff)|((b)<<8)) +#define LOWORD(a) (uint16_t)(a) +#define HIWORD(a) (uint16_t)((a)>>16) +#define MAKEWORD(a,b) (uint16_t)(((a)&0xff)|((b)<<8)) #define MAKELONG(a,b) (DWORD)(((a)&0xffff)|((b)<<16)) #endif @@ -695,7 +695,7 @@ typedef struct { char OriginationDate[10]; // date of creation (yyyy-mm-dd) char OriginationTime[8]; // time of creation (hh-mm-ss) QWORD TimeReference; // first sample count since midnight (little-endian) - WORD Version; // BWF version (little-endian) + uint16_t Version; // BWF version (little-endian) uint8_t UMID[64]; // SMPTE UMID uint8_t Reserved[190]; #if defined(__GNUC__) && __GNUC__<3 @@ -814,13 +814,13 @@ typedef struct { #pragma pack(push,1) typedef struct tWAVEFORMATEX { - WORD wFormatTag; - WORD nChannels; + uint16_t wFormatTag; + uint16_t nChannels; DWORD nSamplesPerSec; DWORD nAvgBytesPerSec; - WORD nBlockAlign; - WORD wBitsPerSample; - WORD cbSize; + uint16_t nBlockAlign; + uint16_t wBitsPerSample; + uint16_t cbSize; } WAVEFORMATEX, *PWAVEFORMATEX, *LPWAVEFORMATEX; typedef const WAVEFORMATEX *LPCWAVEFORMATEX; #pragma pack(pop) diff --git a/plugins/BASS_interface/src/Main.cpp b/plugins/BASS_interface/src/Main.cpp index 51d0489a95..f47410d593 100644 --- a/plugins/BASS_interface/src/Main.cpp +++ b/plugins/BASS_interface/src/Main.cpp @@ -58,7 +58,7 @@ static wchar_t CurrBassPath[MAX_PATH], tmp[MAX_PATH]; static int sndNSnd = 0, sndLimSnd;
static HSTREAM sndSSnd[MAXCHAN] = { 0 };
-static WORD TimeWrd1, TimeWrd2, StatMask;
+static uint16_t TimeWrd1, TimeWrd2, StatMask;
static BOOL QuietTime, Preview, EnPreview;
static int Volume;
static int device = -1;
@@ -77,9 +77,9 @@ static int OnPlaySnd(WPARAM wParam, LPARAM lParam) BOOL doPlay = TRUE;
GetLocalTime(&systime);
- WORD currtime = MAKEWORD(systime.wMinute, systime.wHour);
+ uint16_t currtime = MAKEWORD(systime.wMinute, systime.wHour);
- WORD currstat = 1;
+ uint16_t currstat = 1;
switch (CallService(MS_CLIST_GETSTATUSMODE, 0, 0)) {
case ID_STATUS_INVISIBLE: currstat <<= 1;
case ID_STATUS_FREECHAT: currstat <<= 1;
|