View Single Post
Old 06-30-2009, 11:34 AM   #57
sws
Code Monkey
 
sws's Avatar
 
Join Date: Sep 2007
Location: Madison, WI
Posts: 857
Default

Quote:
Originally Posted by Jeffos View Post
* Clarification for GetSetTrackSendInfo()
I don't understand the comment: "// sendidx is 0..n (NULL on any required parameter to stop)"
"to stop" what ? Because if I use NULL on the 4th param for instance, well, something is stopped, indeed (crash ;-)

* API improvement (correct me if it's already available !!)
- I'd like the 5th param of GetSetTrackSendInfo() not been ignored when it's non-null and when the 4th one is either "P_DESTTRACK" or "P_SRCTRACK" (i.e. read only => read/write). [EDIT] in other words, I'd like to add/update send/recv
- I'd like a new interface similar to: void (*DeleteTrackSend)(MediaTrack *tr, int category, int sendidx);
- I'd like a new interface similar to: int (*GetNumTrackSends)(MediaTrack *tr, int category); this one could help but is not mandatory as there's an indirect way to get that...
- last but not least, how do I edit (+ add, remove) pin connectors within a FX chain ?

Thanks!
Jeffos, currently the only way to add/remove sends is through the GetSetObjectState() interface. (Defined in the latest SDK available at LoL.) It's a little tricky as it's a string parsing exercise. I've been meaning to write a wrapper class around GSOS to do exactly the types of things you're describing; I'll post up here when I get it done.
sws is offline   Reply With Quote