comparison audio/AudioRecordTarget.cpp @ 559:7b115a6505b8 3.0-integration

Handle increases in the overall channel count by closing and reopening the audio device.
author Chris Cannam
date Tue, 13 Dec 2016 12:03:48 +0000
parents 4de547a5905c
children e348e0c52115
comparison
equal deleted inserted replaced
558:206d65e2b69a 559:7b115a6505b8
36 AudioRecordTarget::~AudioRecordTarget() 36 AudioRecordTarget::~AudioRecordTarget()
37 { 37 {
38 QMutexLocker locker(&m_mutex); 38 QMutexLocker locker(&m_mutex);
39 } 39 }
40 40
41 int
42 AudioRecordTarget::getApplicationSampleRate() const
43 {
44 return 0; // don't care
45 }
46
47 int
48 AudioRecordTarget::getApplicationChannelCount() const
49 {
50 return m_recordChannelCount;
51 }
52
41 void 53 void
42 AudioRecordTarget::setSystemRecordBlockSize(int) 54 AudioRecordTarget::setSystemRecordBlockSize(int)
43 { 55 {
44 } 56 }
45 57
59 { 71 {
60 m_recordChannelCount = c; 72 m_recordChannelCount = c;
61 } 73 }
62 74
63 void 75 void
64 AudioRecordTarget::putSamples(int nframes, float **samples) 76 AudioRecordTarget::putSamples(const float *const *samples, int nchannels, int nframes)
65 { 77 {
66 bool secChanged = false; 78 bool secChanged = false;
67 sv_frame_t frameToEmit = 0; 79 sv_frame_t frameToEmit = 0;
68 80
69 { 81 {