mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
pulse-server: improve format parsing
The pulseaudio format should be parsed case insensitive. Add some more pulseaudio supported formats.
This commit is contained in:
parent
03abce72e5
commit
8a24f58cd1
2 changed files with 38 additions and 16 deletions
|
|
@ -38,12 +38,22 @@ enum sample_format {
|
|||
#define SAMPLE_S32NE SAMPLE_S32BE
|
||||
#define SAMPLE_S24NE SAMPLE_S24BE
|
||||
#define SAMPLE_S24_32NE SAMPLE_S24_32BE
|
||||
#define SAMPLE_S16RE SAMPLE_S16LE
|
||||
#define SAMPLE_FLOAT32RE SAMPLE_FLOAT32LE
|
||||
#define SAMPLE_S32RE SAMPLE_S32LE
|
||||
#define SAMPLE_S24RE SAMPLE_S24LE
|
||||
#define SAMPLE_S24_32RE SAMPLE_S24_32LE
|
||||
#elif __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#define SAMPLE_S16NE SAMPLE_S16LE
|
||||
#define SAMPLE_FLOAT32NE SAMPLE_FLOAT32LE
|
||||
#define SAMPLE_S32NE SAMPLE_S32LE
|
||||
#define SAMPLE_S24NE SAMPLE_S24LE
|
||||
#define SAMPLE_S24_32NE SAMPLE_S24_32LE
|
||||
#define SAMPLE_S16RE SAMPLE_S16BE
|
||||
#define SAMPLE_FLOAT32RE SAMPLE_FLOAT32BE
|
||||
#define SAMPLE_S32RE SAMPLE_S32BE
|
||||
#define SAMPLE_S24RE SAMPLE_S24BE
|
||||
#define SAMPLE_S24_32RE SAMPLE_S24_32BE
|
||||
#endif
|
||||
|
||||
struct format {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue