1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /*
- * Copyright (c) 2011 Nokia Corporation.
- */
- #ifndef __CINVSOUNDS__
- #define __CINVSOUNDS__
- #include <QObject>
- #include <QStringList>
- #include "ga_src/GEAudioBuffer.h"
- #include "ga_src/GEAudioOut.h"
- class CInvSounds : public QObject
- {
- Q_OBJECT
- public:
- CInvSounds(QObject *parent);
- ~CInvSounds();
- void enableInternalSounds();
- void enableSounds(QStringList sounds);
- void disableInternalSounds();
- void disableSounds();
- void beginMusicOn();
- void beginMusicOff();
- void enableSounds(bool enable);
- void gameStartSound();
- public slots:
- void playSound(int index);
- void playSounds(int index, int count);
- void playInternalSound(int index);
- void playInternalSounds(int index, int count);
- protected:
- QStringList m_soundPaths;
- QStringList m_internalSoundPaths;
- GE::CAudioBufferPlayInstance *m_musicInstance;
- GE::CAudioMixer m_mixer;
- GE::AudioOut *m_audioOut;
- GE::CAudioBuffer **m_sounds;
- int m_soundCount;
- GE::CAudioBuffer **m_internalSounds;
- int m_internalSoundCount;
- };
- #endif
|