mnSetInputSmoothValues

This command is used to control settings that impact upon the smoothness of sound input.

If you do not want to change an option set it to 0 and it will be left unchanged.

Unsmooth sound input has small noticeable gaps between each packet as it is added to the packet queue and retrieved using mnGetInputData. Smooth sound input has no noticeable gaps.

Unsmooth sound input will also result in an increasing noticeable lag over time where retrieved input becomes older and older.

NoBuffers should always be more than 1. The lower TimePerBuffer, the more buffers needed. If TimePerBuffer or NoBuffers is too low then input will be unsmooth.

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

Parameters

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

unsigned int NoBuffers: There will be this number of buffers collecting input data. Only one will be in use at any one time, whilst the others will be queued by the sound driver. By default this is 2.

unsigned int TimePerBuffer: The length of sound data in milliseconds that each buffer can store. By default this is 250ms.

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