The loadWaveResource method of the DirectSoundResource Class contains the following signatures:
loadWaveResource(int handle, DSResourceDesc resourceDesc, byte[] wave)
loadWaveResource(int handle, DSResourceDesc resourceDesc)
Loads a wave resource from the given module.
public void loadWaveResource(int handle, DSResourceDesc resourceDesc, byte[] wave);
handle | Handle of the module containing 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 and returns it as a wave format object.
public WaveFormatEx loadWaveResource(int handle, DSResourceDesc resourceDesc);
Returns the WaveFormatEx object if successful; null otherwise.
handle | Handle of the module containing the resource. |
resourceDesc | The DSResourceDesc object that receives a description of the resource. |