Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
39:e1a0cf2dcc79 | 40:b2d1a61ab916 |
---|---|
172 m_playSelectionMode = mode; | 172 m_playSelectionMode = mode; |
173 | 173 |
174 emit playSelectionModeChanged(); | 174 emit playSelectionModeChanged(); |
175 } | 175 } |
176 | 176 |
177 size_t | |
178 ViewManager::getPlaybackSampleRate() const | |
179 { | |
180 if (m_playSource) { | |
181 return m_playSource->getTargetSampleRate(); | |
182 } | |
183 return 0; | |
184 } | |
185 | |
177 void | 186 void |
178 ViewManager::setAudioPlaySource(AudioPlaySource *source) | 187 ViewManager::setAudioPlaySource(AudioPlaySource *source) |
179 { | 188 { |
180 if (!m_playSource) { | 189 if (!m_playSource) { |
181 QTimer::singleShot(100, this, SLOT(checkPlayStatus())); | 190 QTimer::singleShot(100, this, SLOT(checkPlayStatus())); |