From e0f46c2d5689121e4ef533617940fea85a6910c3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Jun 2012 20:07:29 +0000 Subject: Unicode in ME_SKIN_PLAYINGSOUND git-svn-id: http://svn.miranda-ng.org/main/trunk@503 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BASS_interface/Main.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/BASS_interface/Main.cpp') 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; } -- cgit v1.2.3