mnPlayData

This command is used to copy a packet into the play queue.

The packet may not necessarily be played instantly.

If data is already playing on the specified output instance, the new data will only begin playing after the already playing data has finished.

Even if there is no data currently playing, the data may not be played instantly. This depends on values set by mnSetOutputSmoothValues.

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

Parameters

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

long long int Packet: This is the packet that should be played. Everything up to the used size is played (regardless of cursor position and memory size).

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 Output
(1) Sound Input and Output
(0) DarkNet Help