aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/mediaplayer/mp_winampinterface.cpp
diff options
context:
space:
mode:
authorGravatar Robert Förster2009-09-01 22:12:36 +0000
committerGravatar Robert Förster2009-09-01 22:12:36 +0000
commitea06d9bbbd8d8ef75034bfc3f62838f193537984 (patch)
treea437eeabaa4b3d09f3313a6b0dd07b5bb961749d /src/modules/mediaplayer/mp_winampinterface.cpp
parentupdated splash screen (diff)
downloadKVIrc-ea06d9bbbd8d8ef75034bfc3f62838f193537984.tar.gz
KVIrc-ea06d9bbbd8d8ef75034bfc3f62838f193537984.tar.bz2
KVIrc-ea06d9bbbd8d8ef75034bfc3f62838f193537984.zip
- trailing whitespace cleanups all over the place
- removed charset dependent manpages since it really makes no sense to distribute them, they are getting installed in non standard places and one manpage per language is enough - added SpotChat to the serverdb, happens to be my network anyway :P (someone should remind me to check all the networks and servers there so we can do a cleanup if needed git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3463 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/mediaplayer/mp_winampinterface.cpp')
-rw-r--r--src/modules/mediaplayer/mp_winampinterface.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/mediaplayer/mp_winampinterface.cpp b/src/modules/mediaplayer/mp_winampinterface.cpp
index 2ed11f2a5..4cafce127 100644
--- a/src/modules/mediaplayer/mp_winampinterface.cpp
+++ b/src/modules/mediaplayer/mp_winampinterface.cpp
@@ -46,14 +46,14 @@
#define IPC_JUMPTOTIME 106
// ** SendMessage(hwnd_winamp,WM_WA_IPC,ms,IPC_JUMPTOTIME);
-// ** IPC_JUMPTOTIME sets the position in milliseconds of the
+// ** IPC_JUMPTOTIME sets the position in milliseconds of the
// ** current song (approximately).
#define IPC_SETPLAYLISTPOS 121
// ** SendMessage(hwnd_winamp,WM_WA_IPC,position,IPC_SETPLAYLISTPOS)
// ** IPC_SETPLAYLISTPOS sets the playlsit position to 'position'.
-#define IPC_SETVOLUME 122
+#define IPC_SETVOLUME 122
// ** SendMessage(hwnd_winamp,WM_WA_IPC,volume,IPC_SETVOLUME);
// ** IPC_SETVOLUME sets the volume of Winamp (from 0-255).
@@ -62,9 +62,9 @@
// ** IPC_GETLISTLENGTH returns the length of the current playlist, in
// ** tracks.
-#define IPC_GETEQDATA 127
+#define IPC_GETEQDATA 127
// ** int data=SendMessage(hwnd_winamp,WM_WA_IPC,pos,IPC_GETEQDATA);
-// ** IPC_GETEQDATA queries the status of the EQ.
+// ** IPC_GETEQDATA queries the status of the EQ.
// ** The value returned depends on what 'pos' is set to:
// ** Value Meaning
// ** ------------------
@@ -169,8 +169,8 @@
static QTextCodec * mediaplayer_get_codec()
{
- QTextCodec * c= QTextCodec::codecForName(KVI_OPTION_STRING(KviOption_stringWinampTextEncoding).toAscii());
- if(!c)c = QTextCodec::codecForLocale();
+ QTextCodec * c= QTextCodec::codecForName(KVI_OPTION_STRING(KviOption_stringWinampTextEncoding).toAscii());
+ if(!c)c = QTextCodec::codecForLocale();
return c;
}
@@ -362,7 +362,7 @@ QString KviWinampInterface::nowPlaying()
szBuffer[i] = SendMessage(hWinamp,WM_USER,KVIRC_WM_USER,KVIRC_WM_USER_TRANSFER + i);
}
szBuffer[ len ] = '\0';
-
+
QTextCodec *c=mediaplayer_get_codec();
if (c) ret = c->toUnicode(szBuffer);
else ret=szBuffer;