Mercurial > hg > svapp
diff audioio/AudioCallbackPlaySource.h @ 3:75c3ea1c3a32
* Add play-selection and looping modes. Looping seems to work OK, but
the plain play-selection is miscalculating current frame number to
feed back to the GUI.
* Cache selection rectanges wherever possible in View::paintEvent.
author | Chris Cannam |
---|---|
date | Tue, 24 Jan 2006 16:20:58 +0000 |
parents | df5923e33d01 |
children | 5865094175ea |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.h Thu Jan 12 13:45:27 2006 +0000 +++ b/audioio/AudioCallbackPlaySource.h Tue Jan 24 16:20:58 2006 +0000 @@ -167,6 +167,11 @@ /// Just a warning void sampleRateMismatch(size_t requested, size_t available); +protected slots: + void selectionChanged(); + void playLoopModeChanged(); + void playSelectionModeChanged(); + protected: ViewManager *m_viewManager; AudioGenerator *m_audioGenerator; @@ -218,6 +223,7 @@ Scavenger<TimeStretcherData> m_timeStretcherScavenger; void fillBuffers(); // Called from fill thread, m_playing true, mutex held + bool mixModels(size_t &frame, size_t count, float **buffers); class AudioCallbackPlaySourceFillThread : public QThread {