Skip to content

Commit 9156885

Browse files
authored
fix(resample): function name changed in dependent package (#22)
in v0.9.8 the Resample Package was refactored, this resulted in the `setStream` being renamed `setOutput`. This took a good while to track down because it wasn't clear why the `override` was throwing an error on the `virtual` `void`. This brings the code back into a functional state.
1 parent 8957a59 commit 9156885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/SnapOutput.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SnapOutput : public AudioInfoSupport {
8888
/// Defines the audio output chain to the final output
8989
void setOutput(AudioOutput &output) {
9090
this->out = &output; // final output
91-
resample.setStream(output);
91+
resample.setOutput(output);
9292
vol_stream.setStream(resample); // adjust volume
9393
decoder_stream.setStream(&vol_stream); // decode to pcm
9494
}
@@ -266,4 +266,4 @@ class SnapOutput : public AudioInfoSupport {
266266
}
267267
};
268268

269-
}
269+
}

0 commit comments

Comments
 (0)