PipeWire 0.3.65
wma.h
1/* Simple Plugin API
2 *
3 * Copyright © 2023 Wim Taymans
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
14 * Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 */
24
25#ifndef SPA_AUDIO_WMA_H
26#define SPA_AUDIO_WMA_H
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include <spa/param/audio/raw.h>
33
34enum spa_audio_wma_profile {
35 SPA_AUDIO_WMA_PROFILE_UNKNOWN,
36
37 SPA_AUDIO_WMA_PROFILE_WMA7,
38 SPA_AUDIO_WMA_PROFILE_WMA8,
39 SPA_AUDIO_WMA_PROFILE_WMA9,
40 SPA_AUDIO_WMA_PROFILE_WMA10,
41 SPA_AUDIO_WMA_PROFILE_WMA9_PRO,
42 SPA_AUDIO_WMA_PROFILE_WMA9_LOSSLESS,
43 SPA_AUDIO_WMA_PROFILE_WMA10_LOSSLESS,
44
45 SPA_AUDIO_WMA_PROFILE_CUSTOM = 0x10000,
46};
47
48struct spa_audio_info_wma {
49 uint32_t rate; /*< sample rate */
50 uint32_t channels; /*< number of channels */
51 uint32_t bitrate; /*< stream bitrate */
52 uint32_t block_align; /*< block alignment */
53 enum spa_audio_wma_profile profile; /*< WMA profile */
55};
57#define SPA_AUDIO_INFO_WMA_INIT(...) ((struct spa_audio_info_wma) { __VA_ARGS__ })
58
63#ifdef __cplusplus
64} /* extern "C" */
65#endif
66
67#endif /* SPA_AUDIO_WMA_H */
spa/param/audio/raw.h
Definition: wma.h:52
uint32_t channels
Definition: wma.h:54
enum spa_audio_wma_profile profile
Definition: wma.h:57
uint32_t block_align
Definition: wma.h:56
uint32_t bitrate
Definition: wma.h:55
uint32_t rate
Definition: wma.h:53