10#ifndef __AUDIO_PAN_H__
11#define __AUDIO_PAN_H__
13#include <glib/gi18n.h>
16#define PAN_MINUS_3DB_AMP (-0.292054216f)
19#define PAN_MINUS_6DB_AMP (-0.498812766f)
36static const char * pan_law_str[] = {
43static inline const char *
44pan_law_to_string (
PanLaw pan_law)
46 return pan_law_str[
static_cast<int> (pan_law)];
55 PAN_ALGORITHM_SQUARE_ROOT,
56 PAN_ALGORITHM_SINE_LAW
59static const char * pan_algorithm_str[] = {
65static inline const char *
68 return pan_algorithm_str[
static_cast<int> (pan_algo)];
PanAlgorithm
See https://www.harmonycentral.com/articles/the-truth-about-panning-laws.
PanLaw
These are only useful when changing mono to stereo.