From e5eef319ddddbc3ca047325290995851a9da2942 Mon Sep 17 00:00:00 2001 From: Robert Wu <85952307+robertwu1@users.noreply.github.com> Date: Thu, 8 Jul 2021 09:37:50 -0700 Subject: [PATCH] fix unused-parameter warnings --- src/aaudio/AudioStreamAAudio.cpp | 2 +- src/common/FilterAudioStream.h | 6 +++--- src/flowgraph/ManyToMultiConverter.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/aaudio/AudioStreamAAudio.cpp b/src/aaudio/AudioStreamAAudio.cpp index affbd7176..932878eed 100644 --- a/src/aaudio/AudioStreamAAudio.cpp +++ b/src/aaudio/AudioStreamAAudio.cpp @@ -344,7 +344,7 @@ Result AudioStreamAAudio::close() { } } -DataCallbackResult AudioStreamAAudio::callOnAudioReady(AAudioStream *stream, +DataCallbackResult AudioStreamAAudio::callOnAudioReady(AAudioStream * /*stream*/, void *audioData, int32_t numFrames) { DataCallbackResult result = fireDataCallback(audioData, numFrames); diff --git a/src/common/FilterAudioStream.h b/src/common/FilterAudioStream.h index 5d99162bb..2f50e3ec8 100644 --- a/src/common/FilterAudioStream.h +++ b/src/common/FilterAudioStream.h @@ -182,20 +182,20 @@ class FilterAudioStream : public AudioStream, AudioStreamCallback { void *audioData, int32_t numFrames) override; - bool onError(AudioStream * audioStream, Result error) override { + bool onError(AudioStream * /*audioStream*/, Result error) override { if (mErrorCallback != nullptr) { return mErrorCallback->onError(this, error); } return false; } - void onErrorBeforeClose(AudioStream *oboeStream, Result error) override { + void onErrorBeforeClose(AudioStream * /*oboeStream*/, Result error) override { if (mErrorCallback != nullptr) { mErrorCallback->onErrorBeforeClose(this, error); } } - void onErrorAfterClose(AudioStream *oboeStream, Result error) override { + void onErrorAfterClose(AudioStream * /*oboeStream*/, Result error) override { // Close this parent stream because the callback will only close the child. AudioStream::close(); if (mErrorCallback != nullptr) { diff --git a/src/flowgraph/ManyToMultiConverter.h b/src/flowgraph/ManyToMultiConverter.h index c60e0704b..21a95df5f 100644 --- a/src/flowgraph/ManyToMultiConverter.h +++ b/src/flowgraph/ManyToMultiConverter.h @@ -37,7 +37,7 @@ class ManyToMultiConverter : public flowgraph::FlowGraphNode { int32_t onProcess(int numFrames) override; - void setEnabled(bool enabled) {} + void setEnabled(bool /*enabled*/) {} std::vector> inputs; flowgraph::FlowGraphPortFloatOutput output;