This commit is contained in:
Max-Wilhelm Bruker 2011-06-25 23:42:16 +02:00
parent 05ebb83ba4
commit 7bfa3e6d3a
4 changed files with 8 additions and 2 deletions

View file

@ -77,7 +77,7 @@ void MessageLogWidget::logGameJoined(int gameId)
void MessageLogWidget::logJoin(Player *player)
{
soundEngine->notification();
soundEngine->cuckoo();
myAppend(tr("%1 has joined the game.").arg(sanitizeHtml(player->getName())));
}

View file

@ -25,7 +25,7 @@ SoundEngine::SoundEngine(QObject *parent)
void SoundEngine::cacheData()
{
static const QStringList fileNames = QStringList()
<< "notification" << "draw" << "playcard" << "shuffle" << "tap" << "untap";
<< "notification" << "draw" << "playcard" << "shuffle" << "tap" << "untap" << "cuckoo";
for (int i = 0; i < fileNames.size(); ++i) {
QFile file(settingsCache->getSoundPath() + "/" + fileNames[i] + ".raw");
file.open(QIODevice::ReadOnly);
@ -75,3 +75,8 @@ void SoundEngine::untap()
{
playSound("untap");
}
void SoundEngine::cuckoo()
{
playSound("cuckoo");
}

View file

@ -25,6 +25,7 @@ public slots:
void shuffle();
void tap();
void untap();
void cuckoo();
};
extern SoundEngine *soundEngine;

BIN
sounds/cuckoo.wav Normal file

Binary file not shown.