mnReadDeviceFormatSupport

This command returns the name of the specified input or output device.

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

You can use mnGetNumInputDevices to determine how many input devices are available.

You can use mnReadDeviceFormatSupport on the return value of this command to determine what formats the device supports.

You can use mnSetInputFormat or mnSetOutputFormat to change the format of an input or output instance.

Parameters

unsigned int SupportInfo: The return value of mnGetDeviceSupportInfo.

unsigned char KHZ: Samples per second in kilohertz. Possible options are 8 (8 kHz), 11 (11.025 kHz), 22 (22.05 kHz), and 44 (44.1 kHz).

unsigned char Channels: The number of channels. Possible options are 1 and 2.

unsigned char Bits: Bits per sample. Possible options are 8 and 16.

Returns (Integer)

1 if the specified format is supported.

0 if the specified format 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