QTfrontend/chatwidget.cpp
changeset 2774 a4fd9eacd286
parent 2773 e94f240a8a41
child 2775 3445ce5e9c79
--- a/QTfrontend/chatwidget.cpp	Tue Feb 09 01:47:50 2010 +0000
+++ b/QTfrontend/chatwidget.cpp	Tue Feb 09 01:50:36 2010 +0000
@@ -119,7 +119,7 @@
 
 void HWChatWidget::nickAdded(const QString& nick)
 {
-    Mix_Music *sound;
+    Mix_Chunk *sound;
     QDir tmpdir;
 
 	QListWidgetItem * item = new QListWidgetItem(nick);
@@ -130,8 +130,8 @@
        sdli->SDLMusicInit();
        tmpdir.cd(datadir->absolutePath());
        tmpdir.cd("Sounds/");
-       sound = Mix_LoadMUS(QString(tmpdir.absolutePath() + "/switchhog.ogg").toLocal8Bit().constData());
-       Mix_PlayMusic(sound, 0);
+       sound = Mix_LoadWAV(QString(tmpdir.absolutePath() + "/switchhog.ogg").toLocal8Bit().constData());
+       Mix_PlayChannel(-1, sound, 0);
     }
 }