Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

payload size

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

payload size

Post by WharfRat »

Hi...

I am writing a new plugin (for MIDI devices).

Some of the events will have a payload, which could conceivably be quite large, like many kilobytes.
For instance, MIDI System Exclusive messages can contain audio data samples for instruments, and so on...

Are there any payload limitations that I should be aware of?
And, if there are, could you perhaps suggest some other approaches?
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: payload size

Post by Pako »

I do not know of any restrictions.
I recommend you to try it - of course use a larger data packet with a sufficient margin.

Pako
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: payload size

Post by WharfRat »

Thanks Pako...

I just realized that it was a stupid question.

MIDI data is transmitted serially, so we only need to deal with it one byte at a time.
But it is nice to know that there is no particular limit to payload sizes.

I should think harder before I open my big mouth...
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
Post Reply