View Single Post
Old 12-10-2013, 01:16 PM   #264
sws
Code Monkey
 
sws's Avatar
 
Join Date: Sep 2007
Location: Madison, WI
Posts: 857
Default

Quote:
Originally Posted by tweed View Post
Though if I add anything after the 4096 as an attempt to specify one of the various midi imputs on my system plus perhaps a midi channel i get errors

I_RECINPUT : int * : record input. <0 = no input, 0..n = mono hardware input, 512+n = rearoute input, 1024 set for stereo input pair. 4096 set for MIDI input, if set, then low 5 bits represent channel (0=all, 1-16=only chan), then next 5 bits represent physical input (31=all, 30=VKB)
You're close. There's only one parameter that is calculated with the following easy formula:

Input = 4096 + channel + 32 * input

Use channel = 0 for all

For example input device 2, channel 1 would be 4096 + 1 + 32 * 2 = 4161
RPR_SetMediaTrackInfo_Value(tr, "I_RECINPUT", 4161)
sws is offline   Reply With Quote