This is a method of the IDirectSoundBuffer Interface.
public void writeBuffer(int start, int size, byte[] buffer, int flags);