mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Including C headers inside of `extern "C"` breaks use from C++. Hoist the includes of standard C headers above the block so we don't try to mangle the stdlib. I initially tried to scope this with a targeted change but it's too hard to do correctly that way. This way, we avoid whack-a-mole. Firefox is working around this in their e21461b7b8b39cc31ba53c47d4f6f310c673ff2f commit. Bug: https://bugzilla.mozilla.org/1953080
51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
/* Simple Plugin API */
|
|
/* SPDX-FileCopyrightText: Copyright © 2025 Carlos Rafael Giani */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef SPA_AUDIO_DTS_H
|
|
#define SPA_AUDIO_DTS_H
|
|
|
|
#include <spa/param/audio/raw.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* \addtogroup spa_param
|
|
* \{
|
|
*/
|
|
|
|
/**
|
|
* Possible high-definition DTS extensions on top of core DTS.
|
|
*/
|
|
enum spa_audio_dts_ext_type {
|
|
SPA_AUDIO_DTS_EXT_UNKNOWN,
|
|
SPA_AUDIO_DTS_EXT_NONE, /**< No extension present; this is just regular DTS data */
|
|
SPA_AUDIO_DTS_EXT_HD_HRA, /**< DTS-HD High Resolution Audio (lossy HD audio extension) */
|
|
SPA_AUDIO_DTS_EXT_HD_MA, /**< DTS-HD Master Audio (lossless HD audio extension) */
|
|
};
|
|
|
|
/**
|
|
* DTS Coherent Acoustics audio info. Optional extensions on top
|
|
* of the DTS content can be present, resulting in what is known
|
|
* as DTS-HD. \a ext_type specifies which extension is used in
|
|
* combination with the core DTS content (if any).
|
|
*/
|
|
struct spa_audio_info_dts {
|
|
uint32_t rate; /*< sample rate */
|
|
uint32_t channels; /*< number of channels */
|
|
enum spa_audio_dts_ext_type ext_type; /*< DTS-HD extension type */
|
|
};
|
|
|
|
#define SPA_AUDIO_INFO_DTS_INIT(...) ((struct spa_audio_info_dts) { __VA_ARGS__ })
|
|
|
|
/**
|
|
* \}
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* SPA_AUDIO_DTS_H */
|