Mercurial > hg > svapp
comparison audio/AudioRecordTarget.h @ 564:07e111dd5902 levelpanwidget
Merge from branch 3.0-integration
author | Chris Cannam |
---|---|
date | Wed, 14 Dec 2016 14:28:41 +0000 |
parents | 7b115a6505b8 |
children |
comparison
equal
deleted
inserted
replaced
545:fcac6c6b8deb | 564:07e111dd5902 |
---|---|
34 | 34 |
35 public: | 35 public: |
36 AudioRecordTarget(ViewManagerBase *, QString clientName); | 36 AudioRecordTarget(ViewManagerBase *, QString clientName); |
37 virtual ~AudioRecordTarget(); | 37 virtual ~AudioRecordTarget(); |
38 | 38 |
39 virtual std::string getClientName() const { return m_clientName; } | 39 virtual std::string getClientName() const override { return m_clientName; } |
40 | 40 |
41 virtual int getApplicationSampleRate() const { return 0; } // don't care | 41 virtual int getApplicationSampleRate() const override; |
42 virtual int getApplicationChannelCount() const { return 2; } | 42 virtual int getApplicationChannelCount() const override; |
43 | 43 |
44 virtual void setSystemRecordBlockSize(int); | 44 virtual void setSystemRecordBlockSize(int) override; |
45 virtual void setSystemRecordSampleRate(int); | 45 virtual void setSystemRecordSampleRate(int) override; |
46 virtual void setSystemRecordLatency(int); | 46 virtual void setSystemRecordLatency(int) override; |
47 virtual void setSystemRecordChannelCount(int) override; | |
47 | 48 |
48 virtual void putSamples(int nframes, float **samples); | 49 virtual void putSamples(const float *const *samples, int nchannels, int nframes) override; |
49 | 50 |
50 virtual void setInputLevels(float peakLeft, float peakRight); | 51 virtual void setInputLevels(float peakLeft, float peakRight) override; |
51 | 52 |
52 virtual void audioProcessingOverload() { } | 53 virtual void audioProcessingOverload() override { } |
53 | 54 |
54 QString getRecordContainerFolder(); | 55 QString getRecordContainerFolder(); |
55 QString getRecordFolder(); | 56 QString getRecordFolder(); |
56 | 57 |
57 bool isRecording() const { return m_recording; } | 58 bool isRecording() const { return m_recording; } |
69 private: | 70 private: |
70 ViewManagerBase *m_viewManager; | 71 ViewManagerBase *m_viewManager; |
71 std::string m_clientName; | 72 std::string m_clientName; |
72 bool m_recording; | 73 bool m_recording; |
73 sv_samplerate_t m_recordSampleRate; | 74 sv_samplerate_t m_recordSampleRate; |
75 int m_recordChannelCount; | |
74 sv_frame_t m_frameCount; | 76 sv_frame_t m_frameCount; |
75 QString m_audioFileName; | 77 QString m_audioFileName; |
76 WritableWaveFileModel *m_model; | 78 WritableWaveFileModel *m_model; |
77 QMutex m_mutex; | 79 QMutex m_mutex; |
78 }; | 80 }; |