MPD: PcmExport::Params Struct Reference

MPD 0.20.15

Public Member Functions | Data Fields
PcmExport::Params Struct Reference

`#include <PcmExport.hxx>`

## Public Member Functions
gcc_pure unsigned | CalcOutputSampleRate (unsigned input_sample_rate) const noexcept
| Calculate the output sample rate, given a specific input sample rate. More...
gcc_pure unsigned | CalcInputSampleRate (unsigned output_sample_rate) const noexcept
| The inverse of CalcOutputSampleRate(). More...

## Data Fields
bool | alsa_channel_order = false
bool | shift8 = false
bool | pack24 = false
bool | reverse_endian = false

## Detailed Description

Definition at line 120 of file PcmExport.hxx.

## Member Function Documentation

## ◆ CalcInputSampleRate()

gcc_pure unsigned PcmExport::Params::CalcInputSampleRate | ( | unsigned | output_sample_rate | ) | const
| noexcept

The inverse of CalcOutputSampleRate().

## ◆ CalcOutputSampleRate()

gcc_pure unsigned PcmExport::Params::CalcOutputSampleRate | ( | unsigned | input_sample_rate | ) | const
| noexcept

Calculate the output sample rate, given a specific input sample rate.

Usually, both are the same; however, with DSD_U32, four input bytes (= 4 * 8 bits) are combined to one output word (32 bits), dividing the sample rate by 4.

## Field Documentation

## ◆ alsa_channel_order

bool PcmExport::Params::alsa_channel_order = false

Definition at line 121 of file PcmExport.hxx.

## ◆ pack24

bool PcmExport::Params::pack24 = false

Definition at line 128 of file PcmExport.hxx.

## ◆ reverse_endian

bool PcmExport::Params::reverse_endian = false

Definition at line 129 of file PcmExport.hxx.

## ◆ shift8

bool PcmExport::Params::shift8 = false

Definition at line 127 of file PcmExport.hxx.

The documentation for this struct was generated from the following file:

- pcm/PcmExport.hxx