[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/klettres/klettres
From: Anne-Marie Mahfouf <annma () kde ! org>
Date: 2005-03-16 15:01:59
Message-ID: 20050316150159.3BB3917D06 () office ! kde ! org
[Download RAW message or body]
CVS commit by annma:
make it actually play the sounds!
M +1 -0 klettresview.cpp 1.24
M +6 -3 soundfactory.cpp 1.18
--- kdeedu/klettres/klettres/klettresview.cpp #1.23:1.24
@@ -78,4 +78,5 @@ void KLettresView::chooseSound()
//The sound is played
+ kdDebug() << "m_random " << m_random << endl;
m_klettres->soundFactory->playSound(m_random);
//store letter or syllable in m_currentLetter
--- kdeedu/klettres/klettres/soundfactory.cpp #1.17:1.18
@@ -68,9 +68,11 @@ void SoundFactory::playSound(int mySound
if ((uint) mySound >= sounds) return;
- soundFile = locate("data", "klettres/languages" + filesList[mySound]);
+ soundFile = locate("data", "klettres/" + filesList[mySound]);
+ kdDebug() << "soundFile " << soundFile << endl;
if (soundFile == 0) return;
KAudioPlayer::play(soundFile);
+ kdDebug() << "-------- after playing " << endl;
}
@@ -144,4 +146,5 @@ bool SoundFactory::loadLanguage(QDomDocu
//filesList helds the names of the sound files (i.e the location of the \
sounds like fr/alpha/a-0.mp3) filesList[sound] = fileAttribute.value();
+ kdDebug() << "fileLists[sound] " << filesList[sound] << endl;
}
return true;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic