This method of the DirectSoundBuffer Class transfers the wave data from the given resource to the start of the sound buffer.
public void transferToSoundBuffer(DSResourceDesc resourceDesc, int flags);
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. |
This method automatically locks and unlocks the buffer before and after writing the data.