audio/pan.h file

Contents

Panning mono sources.

Enums

enum PanLaw { PAN_LAW_0DB, PAN_LAW_MINUS_3DB, PAN_LAW_MINUS_6DB }
These are only useful when changing mono to stereo.
enum PanAlgorithm { PAN_ALGORITHM_LINEAR, PAN_ALGORITHM_SQUARE_ROOT, PAN_ALGORITHM_SINE_LAW }
See https://www.harmonycentral.com/articles/the-truth-about-panning-laws.

Typedefs

using PanLaw = enum PanLaw
These are only useful when changing mono to stereo.
using PanAlgorithm = enum PanAlgorithm
See https://www.harmonycentral.com/articles/the-truth-about-panning-laws.

Defines

#define PAN_MINUS_3DB_AMP
The amplitude of -3dBfs (0.707945784f).
#define PAN_MINUS_6DB_AMP
The amplitude of -6dBfs (0.501187234f).

Enum documentation

enum PanLaw

These are only useful when changing mono to stereo.

No compensation is needed for stereo to stereo. See https://www.hackaudio.com/digital-signal-processing/stereo-audio/square-law-panning/

Typedef documentation

typedef enum PanLaw PanLaw

These are only useful when changing mono to stereo.

No compensation is needed for stereo to stereo. See https://www.hackaudio.com/digital-signal-processing/stereo-audio/square-law-panning/