diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-20 20:07:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-20 20:07:29 +0000 |
commit | e0f46c2d5689121e4ef533617940fea85a6910c3 (patch) | |
tree | 223bb8000a8c74bb57fddfdec440e50bdfc40059 /plugins/BASS_interface/Main.cpp | |
parent | 386ee5dd838eb988a48109e5de2a0d11e74531b7 (diff) |
Unicode in ME_SKIN_PLAYINGSOUND
git-svn-id: http://svn.miranda-ng.org/main/trunk@503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BASS_interface/Main.cpp')
-rw-r--r-- | plugins/BASS_interface/Main.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/BASS_interface/Main.cpp b/plugins/BASS_interface/Main.cpp index 8f7a82ae80..fa214604b9 100644 --- a/plugins/BASS_interface/Main.cpp +++ b/plugins/BASS_interface/Main.cpp @@ -53,7 +53,7 @@ static HWND ClistHWND; static int OnPlaySnd(WPARAM wParam, LPARAM lParam)
{
- char * pszFile = (char *) lParam; SYSTEMTIME systime; WORD currtime, currstat; BOOL doPlay = TRUE;
+ TCHAR* ptszFile = (TCHAR*) lParam; SYSTEMTIME systime; WORD currtime, currstat; BOOL doPlay = TRUE;
GetLocalTime(&systime);
currtime = MAKEWORD(systime.wMinute, systime.wHour);
@@ -61,15 +61,15 @@ static int OnPlaySnd(WPARAM wParam, LPARAM lParam) currstat = 1;
switch (CallService(MS_CLIST_GETSTATUSMODE, 0, 0))
{
- case ID_STATUS_OUTTOLUNCH: currstat <<= 1;
- case ID_STATUS_ONTHEPHONE: currstat <<= 1;
- case ID_STATUS_INVISIBLE: currstat <<= 1;
- case ID_STATUS_FREECHAT: currstat <<= 1;
- case ID_STATUS_DND: currstat <<= 1;
- case ID_STATUS_OCCUPIED: currstat <<= 1;
- case ID_STATUS_NA: currstat <<= 1;
- case ID_STATUS_AWAY: currstat <<= 1;
- case ID_STATUS_ONLINE: currstat <<= 1;
+ case ID_STATUS_OUTTOLUNCH: currstat <<= 1;
+ case ID_STATUS_ONTHEPHONE: currstat <<= 1;
+ case ID_STATUS_INVISIBLE: currstat <<= 1;
+ case ID_STATUS_FREECHAT: currstat <<= 1;
+ case ID_STATUS_DND: currstat <<= 1;
+ case ID_STATUS_OCCUPIED: currstat <<= 1;
+ case ID_STATUS_NA: currstat <<= 1;
+ case ID_STATUS_AWAY: currstat <<= 1;
+ case ID_STATUS_ONLINE: currstat <<= 1;
}
if ( !DBGetContactSettingByte(NULL,"Skin","UseSound",0)) doPlay = FALSE;
@@ -84,12 +84,12 @@ static int OnPlaySnd(WPARAM wParam, LPARAM lParam) if ( Preview || (int)wParam==1 ) doPlay = TRUE;
- if ( !pszFile ) doPlay = FALSE;
+ if ( !ptszFile ) doPlay = FALSE;
if ( doPlay )
{
BASS_StreamFree(sndSSnd[sndNSnd]);
- sndSSnd[sndNSnd] = BASS_StreamCreateFile(FALSE, pszFile, 0, 0, BASS_STREAM_AUTOFREE);
+ sndSSnd[sndNSnd] = BASS_StreamCreateFile(FALSE, ptszFile, 0, 0, BASS_TCHAR | BASS_STREAM_AUTOFREE);
BASS_ChannelPlay(sndSSnd[sndNSnd], FALSE);
sndNSnd = (sndNSnd+1)%sndLimSnd;
}
|