handling networking over midi
handling networking over midi
- Subject: handling networking over midi
- From: Fredrik <email@hidden>
- Date: Thu, 14 May 2009 17:38:14 +0200
I am trying to send audio over midi using midi sample dump, I have
managed to get the basic logic working but would like to get some
ideas of how to treat the networking part. I have tried using a busy
wait loop in my main thread that checks a global variable that serves
as a flag which is set once a message is identified in the midi call
back proc. This doesn´t work as expected and eats up lots of
resources, so at the moment I dont check the flag at all and just
pause between each packet.
Should I start a new thread that takes care of the sending and use a
runloop to check the flag, or should I include my send function inside
the callback proc itself? I have some problems figuring out how I
would get the data inside the callback other than using global
variables.
Regards _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden