diff base/ViewManager.cpp @ 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 935a2419a77c
children 7bf163161b88
line wrap: on
line diff
--- a/base/ViewManager.cpp	Fri Mar 03 17:52:21 2006 +0000
+++ b/base/ViewManager.cpp	Mon Mar 06 17:20:25 2006 +0000
@@ -174,6 +174,15 @@
     emit playSelectionModeChanged();
 }
 
+size_t
+ViewManager::getPlaybackSampleRate() const
+{
+    if (m_playSource) {
+	return m_playSource->getTargetSampleRate();
+    }
+    return 0;
+}
+
 void
 ViewManager::setAudioPlaySource(AudioPlaySource *source)
 {