Copyright © 2008-2019 MultiMedia Soft

WASAPI.RenderDeviceGetCount method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the number of WASAPI devices currently installed inside the system.

The friendly name of each WASAPI device can be obtained using the WASAPI.RenderDeviceGetDesc method.

 

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

For further details about WASAPI see the WASAPIMan class and the How to manage audio playback through WASAPI tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function RenderDeviceGetCount (

ByRef nDevicesCount as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes RenderDeviceGetCount (

ref Int32 nDevicesCount

);


 

[C++]

public: enumErrorCodes RenderDeviceGetCount (

Int32 __gc *nDevicesCount

);


 

 

Parameter

Description

 

 

nDevicesCount

Reference that, on return from the method call, will contain the number of devices for the given device type.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.