| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef AUDIOCONTROLLER_H_
- #define AUDIOCONTROLLER_H_
- namespace gameplay
- {
- class AudioListener;
- class AudioSource;
- /**
- * Defines a class for controlling game audio.
- */
- class AudioController
- {
- friend class Game;
- friend class AudioSource;
- public:
-
- /**
- * Destructor.
- */
- virtual ~AudioController();
- private:
-
- /**
- * Constructor.
- */
- AudioController();
- /**
- * Controller initialize.
- */
- void initialize();
- /**
- * Controller finalize.
- */
- void finalize();
- /**
- * Controller pause.
- */
- void pause();
- /**
- * Controller resume.
- */
- void resume();
- /**
- * Controller update.
- */
- void update(long elapsedTime);
- ALCdevice* _alcDevice;
- ALCcontext* _alcContext;
- static std::list<AudioSource*> _playingSources; // List of currently running sources.
- };
- }
- #endif
|