diff base/AudioPlaySource.h @ 40:b2d1a61ab916

* A bit more work on main window / document / commands stuff. This is still pretty unstable. * Enable CSV file reader also to read files with other separators (e.g. .lab files with space separators) * Show "(R)" on waveform display when resampling during playback * Add ability to import additional audio files (can't process them yet) * Fixes to spectrogram cache for multiple views * Fix to avoid floating-point exception in sparse model when resolution not set yet
author Chris Cannam
date Mon, 06 Mar 2006 17:20:25 +0000
parents 070e9e1e40ea
children 39ae3dee27b9
line wrap: on
line diff
--- a/base/AudioPlaySource.h	Fri Mar 03 17:52:21 2006 +0000
+++ b/base/AudioPlaySource.h	Mon Mar 06 17:20:25 2006 +0000
@@ -50,6 +50,12 @@
      * 0.0 -> 1.0, for metering purposes.
      */
     virtual bool getOutputLevels(float &left, float &right) = 0;
+
+    /**
+     * Return the sample rate set by the target audio device (or the
+     * source sample rate if the target hasn't set one).
+     */
+    virtual size_t getTargetSampleRate() const = 0;
 };
 
 #endif