diff --git a/mono2stereo.cpp b/mono2stereo.cpp index 41b18e9..435f7a2 100644 --- a/mono2stereo.cpp +++ b/mono2stereo.cpp @@ -29,6 +29,12 @@ // Written by Holger Wirtz // 20191122 - inital version +void Mono2Stereo::pan(float pan) +{ + constrain(pan, 0.0, 1.0); + _pan = pan; +} + void Mono2Stereo::update(void) { audio_block_t *in; diff --git a/mono2stereo.h b/mono2stereo.h index fd2ba97..68de6f0 100644 --- a/mono2stereo.h +++ b/mono2stereo.h @@ -41,7 +41,8 @@ class Mono2Stereo : public AudioStream } virtual void update(void); - + virtual void pan(float pan); + private: audio_block_t *inputQueueArray[4]; audio_block_t *out[2];