Consistent samplerate handling for playback and recording - Alex
[terminatorX.git] / src / tX_audiodevice.h
index 76f19294ac76f39442b0e077664d3341f75b0dd7..1d5c29156f481802678a521f38cf4dd991e6ed38 100644 (file)
@@ -41,11 +41,13 @@ class tX_audiodevice
 {
        protected:
        int samples_per_buffer;
+       int sample_rate;
        void init();
        
        public:
        virtual double get_latency()=0; /* call only valid *after* open() */
        int get_buffersize() { return samples_per_buffer; } /* call only valid *after* open() */
+       int get_sample_rate() { return sample_rate; }
        
        virtual int open()=0;
        virtual int close()=0;