Copyright © 2006-2019 MultiMedia Soft

StartFromWasapiMixer method

Previous pageReturn to chapter overviewNext page

Remarks

 

Starts a recording session from the WASAPI input mixer which gets and mixes PCM data incoming from capture and loopback devices attached to the mixer through previous calls to the WASAPI.MixerInputDeviceAttach method.

 

After calling this method, the container application is notified through the CallbackForRecordersEvents delegate invoked with the nEvent parameter set to EV_REC_START.

 

The recording session can be stopped at any time through a call to the Stop method.

 

This method is only intended for usage with Windows Vista and later versions.

For further details about the use of WASAPI see the WASAPI object and the How to manage audio flow through WASAPI tutorial.

For details about the encoding format and parameters applied during recording see the How to perform a recording session section.

 

 

Syntax

 

[Visual Basic]

Public Function StartFromWasapiMixer (

strOutputPath as String

) as enumErrorCodes


 

[C#]

public enumErrorCodes StartFromWasapiMixer (

string strOutputPath

);


 

[C++]

public: enumErrorCodes StartFromWasapiMixer (

string strOutputPath

);


 

 

Parameter

Description

 

 

strOutputPath

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

If this parameter is left empty, recorded data will be stored inside a memory buffer.

 

 

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.