Skip to content

Commit 77b3773

Browse files
committed
FilteredStream.setFilter with pointer and reference
1 parent bc99df8 commit 77b3773

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/AudioTools/AudioStreams.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,14 +1627,20 @@ class FilteredStream : public AudioStream {
16271627

16281628
/// defines the filter for an individual channel - the first channel is 0. The number of channels must have
16291629
/// been defined before we can call this function.
1630-
void setFilter(int channel, Filter<TF> &filter) {
1630+
void setFilter(int channel, Filter<TF> *filter) {
16311631
if (p_converter!=nullptr){
1632-
p_converter->setFilter(channel, &filter);
1632+
p_converter->setFilter(channel, filter);
16331633
} else {
16341634
LOGE("p_converter is null");
16351635
}
16361636
}
16371637

1638+
/// defines the filter for an individual channel - the first channel is 0. The number of channels must have
1639+
/// been defined before we can call this function.
1640+
void setFilter(int channel, Filter<TF> &filter) {
1641+
setFilter(channel, &filter);
1642+
}
1643+
16381644
protected:
16391645
int channels=0;
16401646
Stream *p_stream;

0 commit comments

Comments
 (0)