Copyright © 2006-2018 MultiMedia Soft

InitRecordingSystem method

Previous pageReturn to chapter overviewNext page

Remarks

 

Initializes the control: the call to this method is mandatory and must be performed before calling any other method that will use a recording related functionality, possibly in the container form initialization function: calling this method inside the constructor function of the container form will not work and could cause unpredictable results.

 

If the multimedia engine shouldn't find any enabled or valid input or output device, the container application would be notified through the WarnNoInputDevice and WarnNoOutputDevice events.

 

In case the component should be instanced in conjunction with the Active DJ Studio component, this method should be always called after calling the InitDJSystem initialization method of the other component.

 

 

Syntax

 

[Visual Basic]

control.InitRecordingSystem (

hWndParent as OLE_HANDLE

) as enumErrorCodes


 

[C++]

short control.InitRecordingSystem (

OLE_HANDLE hWndParent

);


 

 

Parameter

Description

 

 

hWndParent

Handle of the container (parent) window: for Visual Basic is represented by the hWnd property of the container form, while for Visual C++ is represented by the call to the container dialog box GetSafeHwnd member function: the return value of this call represents a HWND so it must be cast to OLE_HANDLE to avoid compiler errors

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to see the error code meaning

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.