#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/sound.h>
Inheritance diagram for Sound:


Public Member Functions | |
| Sound (long id) | |
| ~Sound () | |
| void | setSoundFlags (long f) |
| char * | setNbSamples (long n) |
| long | getRate () |
| long | getChannel () |
| long | getNbSamples () |
| long | getSampleSize () |
| char * | getSamples () |
| Sound (const QString &name) | |
| ~Sound () | |
| void | play () |
| void | playLoop () |
| void | stop () |
| bool | isFinished () const |
| bool | isFinished () const __attribute__((weak)) |
Static Public Member Functions | |
| static void | soundAlarm () |
Private Attributes | |
| long | soundRate |
| long | stereo |
| long | sampleSize |
| char * | samples |
| long | nbSamples |
| SoundData * | d |
Friends | |
| void | register_qpe_sound_finished (Sound *, QObject *obj, const char *slot) |
The Sound class is constructed with the .wav music file name. The Sound class retrieves the sound file from the shared Resource class. This class ties together QSound and the available sound resources.
To sound an audible system alarm, call the static method soundAlarm()
Definition at line 25 of file sound.h.
|
|
Definition at line 40 of file sound.cc. References samples, sampleSize, soundRate, and stereo. |
|
|
Destroys the sound Definition at line 48 of file sound.cc. References samples. |
|
|
Opens a wave sound file name for playing Resource is used for finding the file Definition at line 179 of file sound.cpp. References d. |
|
|
|
|
|
Definition at line 116 of file sound.cc. References stereo. Referenced by SoundMixer::startSound(). |
|
|
Definition at line 121 of file sound.cc. References nbSamples. Referenced by SoundMixer::startSound(). |
|
|
Definition at line 111 of file sound.cc. References soundRate. Referenced by SoundMixer::startSound(). |
|
|
Definition at line 131 of file sound.cc. References samples. Referenced by SoundMixer::startSound(). |
|
|
Definition at line 126 of file sound.cc. References sampleSize. Referenced by SoundMixer::startSound(). |
|
|
|
|
|
Definition at line 220 of file sound.cpp. References d, and SoundData::isFinished(). Referenced by Opie::Core::Internal::Zaurus::buzzer(), Opie::Core::Internal::SIMpad::playAlarmSound(), Opie::Core::Internal::Ramses::playAlarmSound(), Opie::Core::Internal::MyPal::playAlarmSound(), Opie::Core::Internal::iPAQ::playAlarmSound(), and Opie::Core::Internal::GenuineIntel::playAlarmSound(). |
|
|
Play the sound once Definition at line 195 of file sound.cpp. References d, SoundData::killTimers(), and SoundData::playLoop(). Referenced by Bullet::Bullet(), Opie::Core::Internal::Zaurus::buzzer(), Base::damageBase(), Man::done(), ParaShoot::levelUp(), Opie::Core::Internal::Ramses::playAlarmSound(), and Simple2::slotFire(). |
|
|
Play the sound, repeatedly until stop() is called Definition at line 204 of file sound.cpp. References d, SoundData::killTimers(), and SoundData::playLoop(). Referenced by Helicopter::Helicopter(). |
|
|
Definition at line 96 of file sound.cc. References nbSamples, samples, sampleSize, size, and stereo. Referenced by CInputScript::ParseDefineSound(). |
|
|
Definition at line 56 of file sound.cc. References GET_SOUND_RATE_CODE, printf, sampleSize, soundIs16bit, soundIsADPCMCompressed, soundIsStereo, soundRate, and stereo. Referenced by CInputScript::ParseDefineSound(). |
|
|
Sounds the audible system alarm. This is used for applications such as Calendar when it needs to alarm the user of an event. Definition at line 232 of file sound.cpp. Referenced by Clock::alarmTimeout(), DateBook::appMessage(), Clock::appMessage(), OPimMainWindow::startAlarm(), Opie::OPimMainWindow::startAlarm(), OPimMainWindow::timerEvent(), Opie::OPimMainWindow::timerEvent(), and DateBook::timerEvent(). |
|
|
Do not repeat the sound after it finishes. This will end a playLoop() Definition at line 213 of file sound.cpp. References d, and SoundData::killTimers(). |
|
||||||||||||||||
|
|
|
|
Definition at line 44 of file sound.h. Referenced by isFinished(), play(), playLoop(), register_qpe_sound_finished(), Sound(), and stop(). |
|
|
Definition at line 31 of file sound.h. Referenced by getNbSamples(), and setNbSamples(). |
|
|
Definition at line 30 of file sound.h. Referenced by getSamples(), setNbSamples(), Sound(), and ~Sound(). |
|
|
Definition at line 28 of file sound.h. Referenced by getSampleSize(), setNbSamples(), setSoundFlags(), and Sound(). |
|
|
Definition at line 26 of file sound.h. Referenced by getRate(), setSoundFlags(), and Sound(). |
|
|
Definition at line 27 of file sound.h. Referenced by getChannel(), setNbSamples(), setSoundFlags(), and Sound(). |
1.4.2