summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-29 10:09:18 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-31 17:35:47 +0200
commit0f18336bc2a597f2625a46ea714e838d03e340b2 (patch)
tree78f328863e70a875ca35db1a64beb18fa7e437cc /src
parent53909b3a74e9c752d3405fda7bc63146b9abdc7a (diff)
more consistent style of output engines' getters
Diffstat (limited to 'src')
-rw-r--r--src/audiooutputengine.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audiooutputengine.h b/src/audiooutputengine.h
index 530ca13..df8b0ee 100644
--- a/src/audiooutputengine.h
+++ b/src/audiooutputengine.h
@@ -49,14 +49,14 @@ public:
virtual void post(size_t nsamples) = 0;
// Reimplement this if you wish to use internal buffer directly.
- virtual sample_t *getBuffer(int ch) { return NULL; }
+ virtual sample_t *getBuffer(int ch) const { return NULL; }
/*
* Overload this method to force engine to use different buffer size.
*/
- virtual size_t getBufferSize() { return 1024; }
+ virtual size_t getBufferSize() const { return 1024; }
- virtual size_t samplerate() { return 44100; }
+ virtual size_t getSamplerate() const { return 44100; }
};
#endif/*__DRUMGIZMO_AUDIOOUTPUTENGINE_H__*/