mnGetInputData

This command is used to retrieve a packet from the input queue. Data is added to the input queue whilst input is un-paused.

You can pause and un-pause input using mnPauseInput and mnUnpauseInput. You can determine if input is paused or un-paused using mnGetInputPaused and mnGetInputUnpaused.

The sound format of the packet’s data will be the same as the sound format of the input instance. You can change the sound format of the instance using mnSetInputFormat, mnSetInputFormatHigh, mnSetInputFormatMedium and mnSetInputFormatLow.

To play data on an output device use mnPlayData.

To manipulate the data use mnSetDataVolume and mnGetDataVolume.

Parameters

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

long long int Packet: This is the packet that will be filled with input data. The memory size of the packet will be increased as necessary and the contents of the packet will be overwritten.

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