diff 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
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.h	Thu Nov 08 16:14:32 2007 +0000
+++ b/audioio/AudioCallbackPlaySource.h	Fri Nov 09 17:46:58 2007 +0000
@@ -52,7 +52,7 @@
     Q_OBJECT
 
 public:
-    AudioCallbackPlaySource(ViewManager *);
+    AudioCallbackPlaySource(ViewManager *, QString clientName);
     virtual ~AudioCallbackPlaySource();
     
     /**
@@ -226,6 +226,8 @@
      */
     void clearSoloModelSet();
 
+    QString getClientName() const { return m_clientName; }
+
 signals:
     void modelReplaced();
 
@@ -247,8 +249,9 @@
     void modelChanged(size_t startFrame, size_t endFrame);
 
 protected:
-    ViewManager                     *m_viewManager;
-    AudioGenerator                  *m_audioGenerator;
+    ViewManager                      *m_viewManager;
+    AudioGenerator                   *m_audioGenerator;
+    QString                           m_clientName;
 
     class RingBufferVector : public std::vector<RingBuffer<float> *> {
     public: