summaryrefslogtreecommitdiff
path: root/src/audiooutputengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audiooutputengine.h')
-rw-r--r--src/audiooutputengine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audiooutputengine.h b/src/audiooutputengine.h
index 7f15e49..25b6ea0 100644
--- a/src/audiooutputengine.h
+++ b/src/audiooutputengine.h
@@ -33,6 +33,8 @@
#include "channel.h"
+#define UNKNOWN_SAMPLERATE 0
+
class AudioOutputEngine {
public:
virtual ~AudioOutputEngine() {}
@@ -55,6 +57,11 @@ public:
* Overload this method to force engine to use different buffer size.
*/
virtual size_t getBufferSize() { return 1024; }
+
+ /**
+ * Overload this method to report output engine samplerate.
+ */
+ virtual size_t samplerate() { return UNKNOWN_SAMPLERATE; }
};
#endif/*__DRUMGIZMO_AUDIOOUTPUTENGINE_H__*/