The loadWaveFile method of the DirectSoundResource Class contains the following signatures:
loadWaveFile(String name, DSResourceDesc resourceDesc, byte[] wave)
loadWaveFile(String name, DSResourceDesc resourceDesc)
Loads a wave resource from the given file.
public void loadWaveFile(String name, DSResourceDesc resourceDesc, byte[] wave);
name | Name of the file that contains the resource. |
resourceDesc | The DSResourceDesc object that receives a description of the resource. |
wave | Array variable that receives the wave resource data. |
Loads a wave resource from a file and returns it as a wave format object.
public WaveFormatEx loadWaveFile(String name, DSResourceDesc resourceDesc);
Returns the WaveFormatEx object if successful; null otherwise.
name | Name of the file that contains the resource. |
resourceDesc | The DSResourceDesc object that receives a description of the resource. |