diff options
author | cbdev <cb@cbcdn.com> | 2019-12-13 22:43:22 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-12-13 22:43:22 +0100 |
commit | d17023d77e90a8665965da50685dcf4a30f3eb37 (patch) | |
tree | 5f060f6cb28485d15361b452e761d13629f2c8f7 /backends/rtpmidi.h | |
parent | 60adf2c4fe53e935e6de359ef1c01d0a91ab7480 (diff) | |
download | midimonster-d17023d77e90a8665965da50685dcf4a30f3eb37.tar.gz midimonster-d17023d77e90a8665965da50685dcf4a30f3eb37.tar.bz2 midimonster-d17023d77e90a8665965da50685dcf4a30f3eb37.zip |
Basic rtpmidi output
Diffstat (limited to 'backends/rtpmidi.h')
-rw-r--r-- | backends/rtpmidi.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/rtpmidi.h b/backends/rtpmidi.h index ddb7bed..b56000a 100644 --- a/backends/rtpmidi.h +++ b/backends/rtpmidi.h @@ -13,7 +13,7 @@ static int rtpmidi_handle(size_t num, managed_fd* fds); static int rtpmidi_start(size_t n, instance** inst); static int rtpmidi_shutdown(size_t n, instance** inst); -#define RTPMIDI_RECV_BUF 4096 +#define RTPMIDI_PACKET_BUFFER 8192 #define RTPMIDI_DEFAULT_HOST "::" #define RTPMIDI_MDNS_PORT "5353" #define RTPMIDI_HEADER_MAGIC htobe16(0x80E1) @@ -58,6 +58,7 @@ typedef struct /*_rtmidi_instance_data*/ { size_t peers; rtpmidi_peer* peer; uint32_t ssrc; + uint16_t sequence; //apple-midi config char* session_name; @@ -103,6 +104,6 @@ typedef struct /*_rtp_midi_header*/ { typedef struct /*_rtp_midi_command*/ { uint8_t flags; - uint8_t additional_length; -} rtpmidi_command; + uint8_t length; +} rtpmidi_command_header; #pragma pack(pop) |