Packages
 In this topic

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class DSBCaps

public final class DSBCaps
{
  // Fields
  public int bufferBytes;
  public int flags;
  public int playCpuOverhead;
  public int unlockTransferRate;
}

Specifies the capabilities of a DirectSound buffer object, for use by the getCaps method.

See also DirectSoundBuffer.

Fields

bufferBytes
Size of this buffer, in bytes.
flags
One or more values of DSBCAPS type that specify buffer-object capabilities.
playCpuOverhead
Specifies the processing overhead as a percentage of main processing cycles needed to mix this sound buffer. For hardware buffers, this field will be 0 because the mixing is performed by the sound device. For software buffers, this field depends on the buffer format and the speed of the system processor.
unlockTransferRate
Specifies the rate, in kilobytes per second, that data is transferred to the buffer memory when unlock is called. High-performance applications can use this value to determine the time required for unlock to execute. For software buffers located in system memory, the rate will be very high since no processing is required. For hardware buffers, the rate may be slower because the buffer might have to be downloaded to the sound card, which may have a limited transfer rate.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.