We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2208cc0 commit 7b48253Copy full SHA for 7b48253
src/AudioTools/AudioStreamsConverter.h
@@ -752,11 +752,16 @@ class FormatConverterStream : public ReformatBaseStream {
752
return begin(from);
753
}
754
755
+ /// Starts the processing: call setAudioInfoOut before to define the target
756
bool begin(AudioInfo from) {
- TRACED();
757
- is_output_notify = false;
758
setAudioInfo(from);
+ return begin();
759
+ }
760
761
+ /// (Re-)Starts the processing: call setAudioInfo and setAudioInfoOut before
762
+ bool begin() override {
763
+ TRACED();
764
+ is_output_notify = false;
765
// build output chain
766
if (getStream() != nullptr) {
767
sampleRateConverter.setStream(*getStream());
0 commit comments