Copyright © 2011-2018 MultiMedia Soft

LoadSoundFromRecordingSession method

Previous pageReturn to chapter overviewNext page

Remarks

 

Loads a sound recorded by an instance of the Audio Sound Recorder for .NET Winform component or by another instance of the Audio Sound Recorder API for .NET component.

You can manage how loaded sound will be added to the existing editing session through a previous call to the SetLoadingMode method.

You can limit the range of sound data that will be loaded from the given sound file with a previous call to the SetLoadingRange method.

 

During the execution of the loading session the CallbackPercentage delegate is invoked, with the nOperation parameter set to OPERATION_SOUND_LOADING, in order to notify about the percentage of advancement of the loading session.

 

For further details about callback delegates see the How to synchronize the container application with the API tutorial.

For further details about the integration between Audio Sound Editor API for .NET and Audio Sound Recorder API for .NET, check the How to load and play sounds recorded by Audio Sound Recorder API section.

 

 

Syntax

 

[Visual Basic]

Public Function LoadSoundFromRecordingSession (

hWndRecorderCtrl as IntPtr

) as enumErrorCodes


 

[C#]

public enumErrorCodes LoadSoundFromRecordingSession (

IntPtr hWndRecorderCtrl

);


 

[C++]

public: enumErrorCodes LoadSoundFromRecordingSession (

IntPtr hWndRecorderCtrl

);


 

 

 

Parameter

Description

 

 

hWndRecorderCtrl

The value of the Handle property of an instance of Audio Sound Recorder for .NET or Audio Sound Recorder API for .NET

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.