Jump to content

need help with my UDF for xVideo


Recommended Posts

Hello

I work on the wrapper for xVideo.dll

can someone help me with DllCall?

I try to translate this function from C++ to AutoIt

xVideo_STREAMS str;
int count = xVideo_ChannelStreamsCount(chan);
if(count<=0)  return; // we exit function
for(int i= 0;i<count;i++)
{
   if(xVideo_ChannelGetStream(chan,i,&str)) then
  {
     ///do something with the stream info found; you may save the index (i) to use it later
     //  str.name; - stream description
    //str.format - stream format(audio/video/subtitle
    
   }



}

that's what I have so far

Func _xVideo_ChannelGetStream($chan)
$xVideo_STREAMS = 'uint format;str name;uint index;int enabled;'
Local $aRet[17]
Local $xVideo_ret_struct1 = DllStructCreate($xVideo_STREAMS)
Local $aRet = DllCall($__xVideo_DLL, "BOOL", "xVideo_ChannelGetStream", "dword", $chan, "int", 0, "str*", DllStructGetPtr($xVideo_ret_struct1))
If @error Then Return SetError(@error, 0, 0)
Return $aRet[0]
EndFunc

that is not running

I am stuck

thanks

xVideo.h

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...