comparison base/PlayParameters.h @ 863:1f98e28f70c6 tonioni

Toward using a sample mixer (with arbitrary frequency target) instead of dssi player plugin
author Chris Cannam
date Tue, 07 Jan 2014 10:57:28 +0000
parents 5858cc462d0a
children 9196cff56abe
comparison
equal deleted inserted replaced
859:13803edd513d 863:1f98e28f70c6
30 virtual bool isPlayMuted() const { return m_playMuted; } 30 virtual bool isPlayMuted() const { return m_playMuted; }
31 virtual bool isPlayAudible() const { return !m_playMuted; } 31 virtual bool isPlayAudible() const { return !m_playMuted; }
32 virtual float getPlayPan() const { return m_playPan; } // -1.0 -> 1.0 32 virtual float getPlayPan() const { return m_playPan; } // -1.0 -> 1.0
33 virtual float getPlayGain() const { return m_playGain; } 33 virtual float getPlayGain() const { return m_playGain; }
34 34
35 virtual QString getPlayPluginId() const { return m_playPluginId; } 35 virtual QString getPlaySampleId() const { return m_playSampleId; }
36 virtual QString getPlayPluginConfiguration() const { return m_playPluginConfiguration; }
37 36
38 virtual void copyFrom(const PlayParameters *); 37 virtual void copyFrom(const PlayParameters *);
39 38
40 virtual void toXml(QTextStream &stream, 39 virtual void toXml(QTextStream &stream,
41 QString indent = "", 40 QString indent = "",
44 public slots: 43 public slots:
45 virtual void setPlayMuted(bool muted); 44 virtual void setPlayMuted(bool muted);
46 virtual void setPlayAudible(bool nonMuted); 45 virtual void setPlayAudible(bool nonMuted);
47 virtual void setPlayPan(float pan); 46 virtual void setPlayPan(float pan);
48 virtual void setPlayGain(float gain); 47 virtual void setPlayGain(float gain);
49 virtual void setPlayPluginId(QString id); 48 virtual void setPlaySampleId(QString id);
50 virtual void setPlayPluginConfiguration(QString configuration); 49
50 // Obsolete but retained for file load compatibility
51 virtual void setPlayPluginConfiguration(QString config);
51 52
52 signals: 53 signals:
53 void playParametersChanged(); 54 void playParametersChanged();
54 void playMutedChanged(bool); 55 void playMutedChanged(bool);
55 void playAudibleChanged(bool); 56 void playAudibleChanged(bool);
56 void playPanChanged(float); 57 void playPanChanged(float);
57 void playGainChanged(float); 58 void playGainChanged(float);
58 void playPluginIdChanged(QString); 59 void playSampleIdChanged(QString);
59 void playPluginConfigurationChanged(QString);
60 60
61 protected: 61 protected:
62 bool m_playMuted; 62 bool m_playMuted;
63 float m_playPan; 63 float m_playPan;
64 float m_playGain; 64 float m_playGain;
65 QString m_playPluginId; 65 QString m_playSampleId;
66 QString m_playPluginConfiguration;
67 66
68 private: 67 private:
69 PlayParameters(const PlayParameters &); 68 PlayParameters(const PlayParameters &);
70 PlayParameters &operator=(const PlayParameters &); 69 PlayParameters &operator=(const PlayParameters &);
71 }; 70 };