diff audioio/AudioCallbackPlayTarget.h @ 1:97c69acdcb82

* Adjust use of target sample rate, so as to make the decision about whether to resample or not more robust. * Update copyrights to 2006
author Chris Cannam
date Thu, 12 Jan 2006 13:45:06 +0000
parents db6fcbd4405c
children c606d3ffa397
line wrap: on
line diff
--- a/audioio/AudioCallbackPlayTarget.h	Tue Jan 10 16:33:16 2006 +0000
+++ b/audioio/AudioCallbackPlayTarget.h	Thu Jan 12 13:45:06 2006 +0000
@@ -2,7 +2,7 @@
 
 /*
     A waveform viewer and audio annotation editor.
-    Chris Cannam, Queen Mary University of London, 2005
+    Chris Cannam, Queen Mary University of London, 2005-2006
     
     This is experimental software.  Not for distribution.
 */
@@ -34,6 +34,14 @@
      */
     virtual void setOutputGain(float gain);
 
+    /**
+     * The main source model (providing the playback sample rate) has
+     * been changed.  The target should query the source's sample
+     * rate, set its output sample rate accordingly, and call back on
+     * the source's setTargetSampleRate to indicate what sample rate
+     * it succeeded in setting at the output.  If this differs from
+     * the model rate, the source will resample.
+     */
     virtual void sourceModelReplaced() = 0;
 
 protected: