#include <algorithm>
#include <array>
#include <cmath>
#include <limits>
#include <unistd.h>
#include <sys/time.h>
#include <SoundTouch.h>
#include <QtGlobal>
#include <QMutexLocker>
#include "libmythbase/compat.h"
#include "libmythbase/mythconfig.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythlogging.h"
#include "audioconvert.h"
#include "audiooutputbase.h"
#include "audiooutputdigitalencoder.h"
#include "freesurround.h"
#include "spdifencoder.h"
Go to the source code of this file.
|
| #define | LOC QString("AOBase: ") |
| |
| #define | WPOS (&m_audioBuffer[org_waud]) |
| |
| #define | RPOS (&m_audioBuffer[m_raud]) |
| |
| #define | ABUF (m_audioBuffer.data()) |
| |
| #define | STST soundtouch::SAMPLETYPE |
| |
| #define | LRPOS (&m_audioBuffer[*local_raud]) |
| |
|
| static constexpr bool | IS_VALID_UPMIX_CHANNEL (int ch) |
| |
| static int | DownmixFrames (int channels_in, int channels_out, float *dst, const float *src, int frames) |
| |
| static void | adjustVolume (void *buf, int len, int volume, bool music, bool upmix) |
| | Adjust the volume of samples. More...
|
| |
| template<class AudioDataType > |
| static void | tMuteChannel (AudioDataType *buffer, int channels, int ch, int frames) |
| |
| static void | muteChannel (int obits, int channels, int ch, void *buffer, int bytes) |
| | Mute individual channels through mono->stereo duplication. More...
|
| |
◆ ABUF
| #define ABUF (m_audioBuffer.data()) |
◆ LOC
| #define LOC QString("AOBase: ") |
◆ LRPOS
| #define LRPOS (&m_audioBuffer[*local_raud]) |
◆ RPOS
| #define RPOS (&m_audioBuffer[m_raud]) |
◆ STST
| #define STST soundtouch::SAMPLETYPE |
◆ WPOS
| #define WPOS (&m_audioBuffer[org_waud]) |
◆ six_speaker_ratio
◆ six_speaker_set
◆ two_speaker_ratio
◆ two_speaker_set
◆ adjustVolume()
| static void adjustVolume |
( |
void * |
buf, |
|
|
int |
len, |
|
|
int |
volume, |
|
|
bool |
music, |
|
|
bool |
upmix |
|
) |
| |
|
static |
◆ DownmixFrames()
| static int DownmixFrames |
( |
int |
channels_in, |
|
|
int |
channels_out, |
|
|
float * |
dst, |
|
|
const float * |
src, |
|
|
int |
frames |
|
) |
| |
|
static |
◆ IS_VALID_UPMIX_CHANNEL()
| static constexpr bool IS_VALID_UPMIX_CHANNEL |
( |
int |
ch | ) |
|
|
staticconstexpr |
◆ muteChannel()
| static void muteChannel |
( |
int |
obits, |
|
|
int |
channels, |
|
|
int |
ch, |
|
|
void * |
buffer, |
|
|
int |
bytes |
|
) |
| |
|
static |
◆ tMuteChannel()
template<class AudioDataType >
| static void tMuteChannel |
( |
AudioDataType * |
buffer, |
|
|
int |
channels, |
|
|
int |
ch, |
|
|
int |
frames |
|
) |
| |
|
static |
◆ m3db
| const float m3db = 0.7071067811865476F |
|
static |
◆ m6db
◆ mm3db
| const float mm3db = -0.7071067811865476F |
|
static |
◆ msqrt_1_3
| const float msqrt_1_3 = -0.577350269189626F |
|
static |
◆ msqrt_1_3bym3db
| const float msqrt_1_3bym3db = 0.408248290463863F |
|
static |
◆ s51_matrix
◆ sqrt_2_3
| const float sqrt_2_3 = 0.816496580927726F |
|
static |
◆ sqrt_2_3by3db
| const float sqrt_2_3by3db = 0.577350269189626F |
|
static |
◆ stereo_matrix
◆ UPMIX_CHANNEL_MASK
| constexpr int UPMIX_CHANNEL_MASK { (1<<1)|(1<<2)|(1<<5)|(1<<7) } |
|
staticconstexpr |