PipeWire: spa/param/audio/dts.h Source File

PipeWire 1.6.5

Loading...
Searching...
No Matches
dts.h
Go to the documentation of this file.
1/* Simple Plugin API */
2/* SPDX-FileCopyrightText: Copyright © 2025 Carlos Rafael Giani */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef SPA_AUDIO_DTS_H
6#define SPA_AUDIO_DTS_H
7
8#include <spa/param/audio/raw.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
18
22enum spa_audio_dts_ext_type {
23 SPA_AUDIO_DTS_EXT_UNKNOWN,
24 SPA_AUDIO_DTS_EXT_NONE,
25 SPA_AUDIO_DTS_EXT_HD_HRA,
26 SPA_AUDIO_DTS_EXT_HD_MA,
27};
28
33
35struct spa_audio_info_dts {
36 uint32_t rate; /*< sample rate */
37 uint32_t channels; /*< number of channels */
38 enum spa_audio_dts_ext_type ext_type; /*< DTS-HD extension type */
39};
40
41#define SPA_AUDIO_INFO_DTS_INIT(...) ((struct spa_audio_info_dts) { __VA_ARGS__ })
42
45
46
47#ifdef __cplusplus
48} /* extern "C" */
49#endif
50
51#endif /* SPA_AUDIO_DTS_H */
raw.h
spa/param/audio/raw.h
spa_audio_dts_ext_type
spa_audio_dts_ext_type
Possible high-definition DTS extensions on top of core DTS.
Definition dts.h:27
SPA_AUDIO_DTS_EXT_NONE
@ SPA_AUDIO_DTS_EXT_NONE
No extension present; this is just regular DTS data.
Definition dts.h:29
SPA_AUDIO_DTS_EXT_UNKNOWN
@ SPA_AUDIO_DTS_EXT_UNKNOWN
Definition dts.h:28
SPA_AUDIO_DTS_EXT_HD_MA
@ SPA_AUDIO_DTS_EXT_HD_MA
DTS-HD Master Audio (lossless HD audio extension).
Definition dts.h:31
SPA_AUDIO_DTS_EXT_HD_HRA
@ SPA_AUDIO_DTS_EXT_HD_HRA
DTS-HD High Resolution Audio (lossy HD audio extension).
Definition dts.h:30
spa_audio_info_dts
DTS Coherent Acoustics audio info.
Definition dts.h:40
spa_audio_info_dts::channels
uint32_t channels
Definition dts.h:42
spa_audio_info_dts::ext_type
enum spa_audio_dts_ext_type ext_type
Definition dts.h:43
spa_audio_info_dts::rate
uint32_t rate
Definition dts.h:41