Remarks
Retrieves the minimal DirectSound buffer length (expressed in milliseconds) supported by a certain output device (sound card). For details about latency, take a look to the How to deal with latency section.
Syntax
[Visual Basic]
Public GetOutputDeviceMinBufferLength (
nOutputIndex as Int16
) as Int16
|
|
[C#]
public Int16 GetOutputDeviceMinBufferLength (
Int16 nOutputIndex
);
|
|
[C++]
public: Int16 GetOutputDeviceMinBufferLength (
Int16 nOutputIndex
);
|
|
Parameter
|
Description
|
|
|
nOutputIndex
|
Number representing the zero-based index of the output device whose minimal DirectSound buffer length must be retrieved
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
Value > 0
|
The current minimal DirectSound buffer length supported by the chosen output device.
|
|