|
HephAudio v3.1.0
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
increases the volume of one channel while decreasing the other one (stereo only). Uses square root to calculate the volumes. More...
#include <SquareLawPanning.h>
Public Member Functions | |
| SquareLawPanning () | |
| SquareLawPanning (double factor) | |
| virtual | ~SquareLawPanning ()=default |
| virtual std::string | Name () const override |
| virtual double | GetFactor () const override |
| virtual void | SetFactor (double factor) override |
Public Member Functions inherited from HephAudio::PanningEffect | |
| virtual | ~PanningEffect ()=default |
| virtual void | Process (AudioBuffer &buffer, size_t startIndex, size_t frameCount) override |
| virtual void | Process (AudioBuffer &buffer) |
| virtual void | Process (AudioBuffer &buffer, size_t startIndex) |
Public Member Functions inherited from HephAudio::AudioEffect | |
| virtual | ~AudioEffect ()=default |
| virtual bool | HasMTSupport () const |
| virtual bool | HasRTSupport () const |
| virtual size_t | GetThreadCount () const |
| virtual void | SetThreadCount (size_t threadCount) |
| virtual size_t | CalculateRequiredFrameCount (size_t outputFrameCount, const AudioFormatInfo &formatInfo) const |
| virtual size_t | CalculateOutputFrameCount (size_t inputFrameCount, const AudioFormatInfo &formatInfo) const |
| virtual size_t | CalculateAdvanceSize (size_t renderFrameCount, const AudioFormatInfo &formatInfo) const |
| virtual void | ResetInternalState () |
Additional Inherited Members | |
Protected Member Functions inherited from HephAudio::PanningEffect | |
| PanningEffect () | |
| virtual void | ProcessST (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override |
Protected Member Functions inherited from HephAudio::AudioEffect | |
| AudioEffect () | |
| virtual void | ProcessMT (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) |
Protected Attributes inherited from HephAudio::PanningEffect | |
| double | leftVolume |
| double | rightVolume |
Protected Attributes inherited from HephAudio::AudioEffect | |
| size_t | threadCount |
increases the volume of one channel while decreasing the other one (stereo only). Uses square root to calculate the volumes.
| HephAudio::SquareLawPanning::SquareLawPanning | ( | ) |
creates a new instance and initializes it with default values.
|
explicit |
creates a new instance and initializes it with the provided values.
| factor | determines how the channels' volume will be changed. Ranges between -1 and 1. -1 means only the left channel will be audible and 1 means only the right channel will be audible. |
|
virtualdefault |
releases the resources and destroys the instance.
|
overridevirtual |
gets the name of the audio effect.
Implements HephAudio::AudioEffect.
|
overridevirtual |
gets the panning factor.
Implements HephAudio::PanningEffect.
|
overridevirtual |
sets the panning factor.
| factor | determines how the channels' volume will be changed. Ranges between -1 and 1. -1 means only the left channel will be audible and 1 means only the right channel will be audible. |
Implements HephAudio::PanningEffect.