Microsoft SDK for Java

transferToSoundBuffer

This method of the DirectSoundBuffer Class transfers the wave data from the given resource to the start of the sound buffer.

Syntax

public void transferToSoundBuffer(DSResourceDesc resourceDesc, int flags);

Parameters

resourceDesc A DSResourceDesc object that specifies the wave resource to transfer.
flags A value of DSBLOCK_ type specifying how the buffer should be locked before it receives the wave data.

Remarks

This method automatically locks and unlocks the buffer before and after writing the data.

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