PipeWire 0.3.77
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};
26#define SPA_AUDIO_INFO_AMR_INIT(...) ((struct spa_audio_info_amr) { __VA_ARGS__ })
32#ifdef __cplusplus
33} /* extern "C" */
34#endif
35
36#endif /* SPA_AUDIO_AMR_H */
spa/param/audio/raw.h
Definition: amr.h:24
uint32_t channels
Definition: amr.h:26
enum spa_audio_amr_band_mode band_mode
Definition: amr.h:27
uint32_t rate
Definition: amr.h:25