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

PipeWire 1.0.3

Loading...
Searching...
No Matches
amr.h
1/* Simple Plugin API */
2/* SPDX-FileCopyrightText: Copyright © 2023 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef SPA_AUDIO_AMR_H
6#define SPA_AUDIO_AMR_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <spa/param/audio/raw.h>
13
14enum spa_audio_amr_band_mode {
15 SPA_AUDIO_AMR_BAND_MODE_UNKNOWN,
16 SPA_AUDIO_AMR_BAND_MODE_NB,
17 SPA_AUDIO_AMR_BAND_MODE_WB,
18};
19
20struct spa_audio_info_amr {
21 uint32_t rate; /*< sample rate */
22 uint32_t channels; /*< number of channels */
23 enum spa_audio_amr_band_mode band_mode;
24};
25
26#define SPA_AUDIO_INFO_AMR_INIT(...) ((struct spa_audio_info_amr) { __VA_ARGS__ })
27
32#ifdef __cplusplus
33} /* extern "C" */
34#endif
35
36#endif /* SPA_AUDIO_AMR_H */
raw.h
spa/param/audio/raw.h
spa_audio_info_amr
Definition amr.h:24
spa_audio_info_amr::channels
uint32_t channels
Definition amr.h:26
spa_audio_info_amr::band_mode
enum spa_audio_amr_band_mode band_mode
Definition amr.h:27
spa_audio_info_amr::rate
uint32_t rate
Definition amr.h:25