Callback_Thread

May 9, 2011 at 12:40pm
I'm confuzzled on how you use this, specifically I'm using the MIDI functions and I want to have my midiInProc held on another thread but I can't seem to figure out how to use CALLBACK_THREAD functionality. I can do it just fine on CALLBACK_FUNCTION but that keeps it on the same thread... so Iunno...
Last edited on May 9, 2011 at 8:16pm
May 9, 2011 at 2:40pm
A Call Back function is a function who's pointer you pass to a DLL or system service to process the data passed from it.

When you say "I want my input data being held on another thread" I'm not sure what you mean. Input data is held by a variable, it's trickey but this input data can be passed to the thread on the stack. Can you post a sample of your code?
May 9, 2011 at 7:43pm
I didn't meanthe actual data but i want the midiInProc function held on another thread how can i do that?
May 9, 2011 at 7:45pm
May 9, 2011 at 8:17pm
No, I know how to create threads, but I don't know how to set up the midiInOpen using the CALLBACK_THREAD parameter.
May 9, 2011 at 10:28pm
I don't know what you mean by "CALLBACK_THREAD" parameter, are you using Win32 or another API?
May 9, 2011 at 10:32pm
May 11, 2011 at 5:51am
Bump: anyone?
Topic archived. No new replies allowed.