Added pan method for monot2stereo.

pull/32/head
Holger Wirtz 5 years ago
parent 94cdd270e9
commit 86e1aa57e0
  1. 6
      mono2stereo.cpp
  2. 3
      mono2stereo.h

@ -29,6 +29,12 @@
// Written by Holger Wirtz // Written by Holger Wirtz
// 20191122 - inital version // 20191122 - inital version
void Mono2Stereo::pan(float pan)
{
constrain(pan, 0.0, 1.0);
_pan = pan;
}
void Mono2Stereo::update(void) void Mono2Stereo::update(void)
{ {
audio_block_t *in; audio_block_t *in;

@ -41,7 +41,8 @@ class Mono2Stereo : public AudioStream
} }
virtual void update(void); virtual void update(void);
virtual void pan(float pan);
private: private:
audio_block_t *inputQueueArray[4]; audio_block_t *inputQueueArray[4];
audio_block_t *out[2]; audio_block_t *out[2];

Loading…
Cancel
Save