Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unused-parameter warnings #1331

Merged
merged 1 commit into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aaudio/AudioStreamAAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/common/FilterAudioStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/flowgraph/ManyToMultiConverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::unique_ptr<flowgraph::FlowGraphPortFloatInput>> inputs;
flowgraph::FlowGraphPortFloatOutput output;
Expand Down