mnSetInputFormatHigh

This command is used to set the format of sound to high quality.

The format of sound using this command is:

- Channels: 1

- Samples per second: 44100

- Bits per sample: 16

This command must be used before the input instance is setup using mnStartInput.

The sound format of the instance used to play data (mnPlayData) must be the same as the format of the data. So if you want to play sound from an output instance, the output instance must have the same format as the input instance. You can change the sound output format of an instance using mnSetOutputFormat, mnSetOutputFormatHigh, mnSetOutputFormatMedium and mnSetOutputFormatLow.

Parameters

int InstanceID: The input instance ID that this command should use.

Returns (Integer)

0 if no error occurred.

-1 if an error occurred.

Present in

DBP

C++

.Net




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