HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
PanningEffect.h
Go to the documentation of this file.
1#pragma once
2#include "HephAudioShared.h"
3#include "AudioEffect.h"
4
7namespace HephAudio
8{
14 {
15 public:
17
18 protected:
23 double leftVolume;
24
30
31 protected:
34
35 public:
37 virtual ~PanningEffect() = default;
38
39 virtual void Process(AudioBuffer& buffer, size_t startIndex, size_t frameCount) override;
40
45 virtual double GetFactor() const = 0;
46
55 virtual void SetFactor(double factor) = 0;
56
57 protected:
58 virtual void ProcessST(const AudioBuffer& inputBuffer, AudioBuffer& outputBuffer, size_t startIndex, size_t frameCount) override;
59 };
60}
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
base class for the audio effects.
Definition AudioEffect.h:15
virtual void Process(AudioBuffer &buffer)
base class for panning effects.
Definition PanningEffect.h:14
double leftVolume
Definition PanningEffect.h:23
virtual void Process(AudioBuffer &buffer, size_t startIndex, size_t frameCount) override
double rightVolume
Definition PanningEffect.h:29
virtual double GetFactor() const =0
virtual ~PanningEffect()=default
virtual void SetFactor(double factor)=0
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override