Copyright © 2006-2018 MultiMedia Soft

SwitchOutputFilesOnSplit method

Previous pageReturn to chapter overviewNext page

Remarks

 

During a splitting recording session started through the StartSplitFromDirectSoundDevice, StartSplitFromWasapiCaptureDevice and StartSplitFromWasapiLoopbackDevice methods, switches to two different output files without stopping the recording session itself: in this way no sound data will be lost.

 

This method will return an error for memory-based recording sessions or for recording sessions whose recording mode, set through the SetRecordingMode method, is different from REC_MODE_NEW.Each time an output file is switched, the CallbackForRecordersEvents delegate is invoked with the nEvent parameter set to EV_REC_OUTPUT_FILE_SWITCH.

 

For further details about output files switching see the How to perform a recording session tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function SwitchOutputFilesOnSplit (

strOutputPathLeft as string,

strOutputPathRight as string

) as enumErrorCodes


 

[C#]

public enumErrorCodes SwitchOutputFilesOnSplit (

string strOutputPathLeft,

string strOutputPathRight

);


 

[C++]

public: enumErrorCodes SwitchOutputFilesOnSplit (

string strOutputPathLeft,

string strOutputPathRight

);


 

 

Parameter

Description

 

 

strOutputPathLeft

String representing the absolute pathname of the destination file that will contain the left channel of recorded data. If this pathname should contain invalid characters, they would be automatically changed into an underscore '_' character.

strOutputPathRight

String representing the absolute pathname of the destination file that will contain the right channel of recorded data. If this pathname should contain invalid characters, they would be automatically changed into an underscore '_' character.

 

 

 

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.