pcm_export_state Struct Reference

An object that handles export of PCM samples to some instance outside of MPD. More...

#include <pcm_export.h>

Data Fields

struct pcm_buffer dsd_buffer
 The buffer is used to convert DSD samples to the DSD-over-USB format.
struct pcm_buffer pack_buffer
 The buffer is used to pack samples, removing padding.
struct pcm_buffer reverse_buffer
 The buffer is used to reverse the byte order.
uint8_t channels
 The number of channels.
bool dsd_usb
 Convert DSD to DSD-over-USB? Input format must be SAMPLE_FORMAT_DSD and output format must be SAMPLE_FORMAT_S24_P32.
bool shift8
 Convert (padded) 24 bit samples to 32 bit by shifting 8 bits to the left?
bool pack24
 Pack 24 bit samples?
uint8_t reverse_endian
 Export the samples in reverse byte order? A non-zero value means the option is enabled and represents the size of each sample (2 or bigger).

Detailed Description

An object that handles export of PCM samples to some instance outside of MPD.

It has a few more options to tweak the binary representation which are not supported by the pcm_convert library.

Definition at line 36 of file pcm_export.h.


Field Documentation

The number of channels.

Definition at line 62 of file pcm_export.h.

The buffer is used to convert DSD samples to the DSD-over-USB format.

See also:
dsd_usb

Definition at line 43 of file pcm_export.h.

Convert DSD to DSD-over-USB? Input format must be SAMPLE_FORMAT_DSD and output format must be SAMPLE_FORMAT_S24_P32.

Definition at line 69 of file pcm_export.h.

Pack 24 bit samples?

Definition at line 80 of file pcm_export.h.

The buffer is used to pack samples, removing padding.

See also:
pack24

Definition at line 50 of file pcm_export.h.

The buffer is used to reverse the byte order.

See also:
reverse_endian

Definition at line 57 of file pcm_export.h.

Export the samples in reverse byte order? A non-zero value means the option is enabled and represents the size of each sample (2 or bigger).

Definition at line 87 of file pcm_export.h.

Convert (padded) 24 bit samples to 32 bit by shifting 8 bits to the left?

Definition at line 75 of file pcm_export.h.


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

Generated on 17 Jul 2013 for MPD by  doxygen 1.6.1