This is a method of the IDirectSoundResource Interface.
public void loadWaveFile(String name, DSResourceDesc resourceDesc, byte[] wave);