mnGetDeviceHardwareSupport

This command is used to determine whether certain features are supported by the device driver.

You can use mnGetNumOutputDevices to determine how many output devices are available.

Parameters

int OutputDeviceID: The output device ID of the device that this command should use.

unsigned int Feature: The feature that the command should determine support for:

Possible features
Feature Value
Supports left and right volume control (mnSetHardwareVolume). Note that if this is not supported only the left volume parameter will be taken into account, and this will control all volume rather than just left. 8
Supports pitch control (mnSetHardwarePitch). 1
Supports playback rate control (mnSetHardwarePlaybackRate). 2
Supports volume control (mnSetHardwareVolume). 4
The driver is synchronous and will block while playing a buffer. This command will return 1 if this is the case. If this is the case DarkNet will not operate correctly, you will only be able to play one sound buffer at a time and so multiple devices should not attempt to play data (mnPlayData) at the same time. 16

Returns (Integer)

1 if the specified feature is supported.

0 if the specified feature is not supported.

-1 if an error occurred.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Sound Devices
(1) Sound Input and Output
(0) DarkNet Help