pipewire/spa/include/spa/param/audio/amr.h

42 lines
745 B
C
Raw Normal View History

/* Simple Plugin API */
/* SPDX-FileCopyrightText: Copyright © 2023 Wim Taymans */
/* SPDX-License-Identifier: MIT */
2023-01-13 13:35:06 +01:00
#ifndef SPA_AUDIO_AMR_H
#define SPA_AUDIO_AMR_H
#include <spa/param/audio/raw.h>
2023-01-13 13:35:06 +01:00
#ifdef __cplusplus
extern "C" {
#endif
2024-01-28 13:06:50 +02:00
/**
* \addtogroup spa_param
* \{
*/
2023-01-13 13:35:06 +01:00
enum spa_audio_amr_band_mode {
SPA_AUDIO_AMR_BAND_MODE_UNKNOWN,
SPA_AUDIO_AMR_BAND_MODE_NB,
SPA_AUDIO_AMR_BAND_MODE_WB,
};
struct spa_audio_info_amr {
uint32_t rate; /*< sample rate */
uint32_t channels; /*< number of channels */
enum spa_audio_amr_band_mode band_mode;
};
#define SPA_AUDIO_INFO_AMR_INIT(...) ((struct spa_audio_info_amr) { __VA_ARGS__ })
/**
* \}
*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* SPA_AUDIO_AMR_H */