123456789101112131415161718192021222324252627282930313233343536373839 |
- /**
- * Copyright (c) 2011 Nokia Corporation.
- *
- * Part of the Qt GameEnabler.
- */
- #ifndef GEINTERFACES_H
- #define GEINTERFACES_H
- #include <QObject>
- namespace GE {
- #define AUDIO_FREQUENCY 22050
- #define AUDIO_SAMPLE_TYPE short
- #define AUDIO_SAMPLE_BITS 16
- // Constants
- const float GEMaxAudioVolumeValue(4096.0f);
- class AudioSource : public QObject
- {
- Q_OBJECT
- public:
- explicit AudioSource(QObject *parent = 0);
- virtual ~AudioSource();
- public:
- virtual bool canBeDestroyed();
- virtual int pullAudio(AUDIO_SAMPLE_TYPE *target, int bufferLength ) = 0;
- };
- } // namespace GE
- #endif // GEINTERFACES_H
|