This is a method of the IDirectSoundBuffer Interface.
public void transferToSoundBuffer(DSResourceDesc resourceDesc, int flags);