summaryrefslogtreecommitdiffstats
path: root/src/engine/channels/enginemicrophone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/channels/enginemicrophone.cpp')
-rw-r--r--src/engine/channels/enginemicrophone.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/channels/enginemicrophone.cpp b/src/engine/channels/enginemicrophone.cpp
index 0e22b88d7d..884c5633d1 100644
--- a/src/engine/channels/enginemicrophone.cpp
+++ b/src/engine/channels/enginemicrophone.cpp
@@ -40,7 +40,7 @@ bool EngineMicrophone::isActive() {
return m_wasActive;
}
-void EngineMicrophone::onInputConfigured(AudioInput input) {
+void EngineMicrophone::onInputConfigured(const AudioInput& input) {
if (input.getType() != AudioPath::MICROPHONE) {
// This is an error!
qWarning() << "EngineMicrophone connected to AudioInput for a non-Microphone type!";
@@ -50,7 +50,7 @@ void EngineMicrophone::onInputConfigured(AudioInput input) {
m_pInputConfigured->forceSet(1.0);
}
-void EngineMicrophone::onInputUnconfigured(AudioInput input) {
+void EngineMicrophone::onInputUnconfigured(const AudioInput& input) {
if (input.getType() != AudioPath::MICROPHONE) {
// This is an error!
qWarning() << "EngineMicrophone connected to AudioInput for a non-Microphone type!";
@@ -60,8 +60,8 @@ void EngineMicrophone::onInputUnconfigured(AudioInput input) {
m_pInputConfigured->forceSet(0.0);
}
-void EngineMicrophone::receiveBuffer(AudioInput input, const CSAMPLE* pBuffer,
- unsigned int nFrames) {
+void EngineMicrophone::receiveBuffer(
+ const AudioInput& input, const CSAMPLE* pBuffer, unsigned int nFrames) {
Q_UNUSED(input);
Q_UNUSED(nFrames);
m_sampleBuffer = pBuffer;