Mercurial > hg > svapp
comparison audioio/AudioCallbackPlaySource.h @ 57:eb596ef12041
* Factor out uses of "Sonic Visualiser" in "common" code to applicationName()
* Add ability to show work title + artist in top-left of pane (thinking of Vect
but may be useful in SV in future)
* A few other generalisations useful for Vect
author | Chris Cannam |
---|---|
date | Fri, 09 Nov 2007 17:46:58 +0000 |
parents | 3c5756fb6a68 |
children | ae2627ac7db2 89a689720ee9 |
comparison
equal
deleted
inserted
replaced
56:75ad3f8f65aa | 57:eb596ef12041 |
---|---|
50 public AudioPlaySource | 50 public AudioPlaySource |
51 { | 51 { |
52 Q_OBJECT | 52 Q_OBJECT |
53 | 53 |
54 public: | 54 public: |
55 AudioCallbackPlaySource(ViewManager *); | 55 AudioCallbackPlaySource(ViewManager *, QString clientName); |
56 virtual ~AudioCallbackPlaySource(); | 56 virtual ~AudioCallbackPlaySource(); |
57 | 57 |
58 /** | 58 /** |
59 * Add a data model to be played from. The source can mix | 59 * Add a data model to be played from. The source can mix |
60 * playback from a number of sources including dense and sparse | 60 * playback from a number of sources including dense and sparse |
224 * Specify that all models should be played as normal (if not | 224 * Specify that all models should be played as normal (if not |
225 * muted). | 225 * muted). |
226 */ | 226 */ |
227 void clearSoloModelSet(); | 227 void clearSoloModelSet(); |
228 | 228 |
229 QString getClientName() const { return m_clientName; } | |
230 | |
229 signals: | 231 signals: |
230 void modelReplaced(); | 232 void modelReplaced(); |
231 | 233 |
232 void playStatusChanged(bool isPlaying); | 234 void playStatusChanged(bool isPlaying); |
233 | 235 |
245 void playParametersChanged(PlayParameters *); | 247 void playParametersChanged(PlayParameters *); |
246 void preferenceChanged(PropertyContainer::PropertyName); | 248 void preferenceChanged(PropertyContainer::PropertyName); |
247 void modelChanged(size_t startFrame, size_t endFrame); | 249 void modelChanged(size_t startFrame, size_t endFrame); |
248 | 250 |
249 protected: | 251 protected: |
250 ViewManager *m_viewManager; | 252 ViewManager *m_viewManager; |
251 AudioGenerator *m_audioGenerator; | 253 AudioGenerator *m_audioGenerator; |
254 QString m_clientName; | |
252 | 255 |
253 class RingBufferVector : public std::vector<RingBuffer<float> *> { | 256 class RingBufferVector : public std::vector<RingBuffer<float> *> { |
254 public: | 257 public: |
255 virtual ~RingBufferVector() { | 258 virtual ~RingBufferVector() { |
256 while (!empty()) { | 259 while (!empty()) { |