module-rtp: Add rtp-midi support

Add rtp-midi support with the media.type = midi option
This commit is contained in:
Wim Taymans 2023-02-16 09:52:04 +01:00
parent 934ab3036e
commit fbd068977c
3 changed files with 675 additions and 159 deletions

View file

@ -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