diff 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
line wrap: on
line diff
--- a/audio/AudioRecordTarget.cpp	Mon Dec 12 17:15:24 2016 +0000
+++ b/audio/AudioRecordTarget.cpp	Tue Dec 13 12:03:48 2016 +0000
@@ -38,6 +38,18 @@
     QMutexLocker locker(&m_mutex);
 }
 
+int
+AudioRecordTarget::getApplicationSampleRate() const
+{
+    return 0; // don't care
+}
+
+int
+AudioRecordTarget::getApplicationChannelCount() const
+{
+    return m_recordChannelCount;
+}
+
 void
 AudioRecordTarget::setSystemRecordBlockSize(int)
 {
@@ -61,7 +73,7 @@
 }
 
 void
-AudioRecordTarget::putSamples(int nframes, float **samples)
+AudioRecordTarget::putSamples(const float *const *samples, int nchannels, int nframes)
 {
     bool secChanged = false;
     sv_frame_t frameToEmit = 0;