Applications use the methods of the DirectSound Class of the com.ms.directX package to create DirectSound objects and set up the environment.
public class DirectSound implements IDirectSound { // Methods public void compact(); public DirectSoundBuffer createSoundBuffer( DSBufferDesc bufferDesc, byte[] format); public DirectSoundBuffer createSoundBuffer( DSBufferDesc bufferDesc, WaveFormatEx format); public DirectSoundBuffer duplicateSoundBuffer( DirectSoundBuffer original); public void enumSoundDrivers(IEnumSoundDriversCallback callback, IUnknown context); public void getCaps(DSCaps caps); public void getSpeakerConfig(int[] speakerConfig); public void initialize(_Guid guid); public void setCooperativeLevel(int hwnd, int level); public void setSpeakerConfig(int speakerConfig); }