QTfrontend/pages.cpp
changeset 1701 ad7a7fd14d36
parent 1684 b3f4ec08f0a4
child 1718 659b214ba777
--- a/QTfrontend/pages.cpp	Sun Jan 18 14:21:13 2009 +0000
+++ b/QTfrontend/pages.cpp	Sun Jan 18 14:25:44 2009 +0000
@@ -37,6 +37,7 @@
 #include <QTableWidget>
 #include <QAction>
 #include <QMenu>
+#include <QSound>
 
 #include "pages.h"
 #include "sdlkeys.h"
@@ -270,9 +271,9 @@
 	tmpdir.cd(datadir->absolutePath());
 	tmpdir.cd("Sounds/voices");
 	tmpdir.cd(CBVoicepack->currentText());
-	QStringList list = tmpdir.entryList(QStringList() << "*.ogg", QDir::Files);
+	QStringList list = tmpdir.entryList(QStringList() << "*.wav", QDir::Files);
 	if (list.size())
-		;//QSound::play(tmpdir.absolutePath() + list[rand() % list.size()]);
+		QSound::play(tmpdir.absolutePath() + "/" + list[rand() % list.size()]);
 }
 
 PageMultiplayer::PageMultiplayer(QWidget* parent) :