Microsoft SDK for Java

DirectSound Class Methods

The DirectSound Class contains the following methods:

compact moves the unused portions of onboard sound memory, if any, to a contiguous block so that the largest portion of free memory will be available.
createSoundBuffer creates a DirectSoundBuffer object to hold a sequence of audio samples.
duplicateSoundBuffer creates a new DirectSoundBuffer object that uses the same buffer memory as the original object.
enumSoundDrivers enumerates the DirectSound drivers installed in the system.
getCaps retrieves the capabilities of the hardware device that is represented by the DirectSound object.
getSpeakerConfig retrieves the speaker configuration specified for this DirectSound object.
initialize initializes the DirectSound object if it has not yet been initialized.
setCooperativeLevel sets the cooperative level of the application for this sound device.
setSpeakerConfig specifies the speaker configuration for the DirectSound object.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.