Mercurial > hg > svapp
comparison audio/AudioRecordTarget.h @ 498:cd9dec2f47e8 recording
Fix suspending/resuming audio device; it wasn't suspending when playback reached the end, only when the user stopped explicitly
author | Chris Cannam |
---|---|
date | Tue, 22 Sep 2015 17:12:37 +0100 |
parents | 3dbc964f5907 |
children | c82cae9a9e74 |
comparison
equal
deleted
inserted
replaced
487:66b92c188cbd | 498:cd9dec2f47e8 |
---|---|
39 virtual std::string getClientName() const { return m_clientName; } | 39 virtual std::string getClientName() const { return m_clientName; } |
40 | 40 |
41 virtual int getApplicationSampleRate() const { return 0; } // don't care | 41 virtual int getApplicationSampleRate() const { return 0; } // don't care |
42 virtual int getApplicationChannelCount() const { return 2; } | 42 virtual int getApplicationChannelCount() const { return 2; } |
43 | 43 |
44 virtual void setSystemRecordSource(breakfastquay::SystemRecordSource *); | |
45 | |
44 virtual void setSystemRecordBlockSize(int); | 46 virtual void setSystemRecordBlockSize(int); |
45 virtual void setSystemRecordSampleRate(int); | 47 virtual void setSystemRecordSampleRate(int); |
46 virtual void setSystemRecordLatency(int); | 48 virtual void setSystemRecordLatency(int); |
47 | 49 |
48 virtual void putSamples(int nframes, float **samples); | 50 virtual void putSamples(int nframes, float **samples); |
64 protected slots: | 66 protected slots: |
65 void modelAboutToBeDeleted(); | 67 void modelAboutToBeDeleted(); |
66 | 68 |
67 private: | 69 private: |
68 ViewManagerBase *m_viewManager; | 70 ViewManagerBase *m_viewManager; |
71 breakfastquay::SystemRecordSource *m_source; | |
69 std::string m_clientName; | 72 std::string m_clientName; |
70 bool m_recording; | 73 bool m_recording; |
71 sv_samplerate_t m_recordSampleRate; | 74 sv_samplerate_t m_recordSampleRate; |
72 sv_frame_t m_frameCount; | 75 sv_frame_t m_frameCount; |
73 QString m_audioFileName; | 76 QString m_audioFileName; |