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

PipeWire 1.2.2

Loading...
Searching...
No Matches
amr.h
Go to the documentation of this file.
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
19enum spa_audio_amr_band_mode {
20 SPA_AUDIO_AMR_BAND_MODE_UNKNOWN,
21 SPA_AUDIO_AMR_BAND_MODE_NB,
22 SPA_AUDIO_AMR_BAND_MODE_WB,
23};
24
25 struct spa_audio_info_amr {
26 uint32_t rate; /*< sample rate */
27 uint32_t channels; /*< number of channels */
28 enum spa_audio_amr_band_mode band_mode;
29};
30
31#define SPA_AUDIO_INFO_AMR_INIT(...) ((struct spa_audio_info_amr) { __VA_ARGS__ })
32
37#ifdef __cplusplus
38} /* extern "C" */
39#endif
40
41#endif /* SPA_AUDIO_AMR_H */
raw.h
spa/param/audio/raw.h
spa_audio_amr_band_mode
spa_audio_amr_band_mode
Definition amr.h:24
SPA_AUDIO_AMR_BAND_MODE_UNKNOWN
@ SPA_AUDIO_AMR_BAND_MODE_UNKNOWN
Definition amr.h:25
SPA_AUDIO_AMR_BAND_MODE_NB
@ SPA_AUDIO_AMR_BAND_MODE_NB
Definition amr.h:26
SPA_AUDIO_AMR_BAND_MODE_WB
@ SPA_AUDIO_AMR_BAND_MODE_WB
Definition amr.h:27
spa_audio_info_amr
Definition amr.h:30
spa_audio_info_amr::channels
uint32_t channels
Definition amr.h:32
spa_audio_info_amr::band_mode
enum spa_audio_amr_band_mode band_mode
Definition amr.h:33
spa_audio_info_amr::rate
uint32_t rate
Definition amr.h:31