mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
module-rtp: Add rtp-midi support
Add rtp-midi support with the media.type = midi option
This commit is contained in:
parent
934ab3036e
commit
fbd068977c
3 changed files with 675 additions and 159 deletions
|
|
@ -51,6 +51,24 @@ struct rtp_payload {
|
|||
#endif
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct rtp_midi_header {
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
unsigned len:4;
|
||||
unsigned p:1;
|
||||
unsigned z:1;
|
||||
unsigned j:1;
|
||||
unsigned b:1;
|
||||
uint8_t len_b;
|
||||
#elif __BYTE_ORDER == __BIG_ENDIAN
|
||||
unsigned b:1;
|
||||
unsigned j:1;
|
||||
unsigned z:1;
|
||||
unsigned p:1;
|
||||
unsigned len:4;
|
||||
uint8_t len_b;
|
||||
#endif
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue