Microsoft SDK for Java

loadWaveResource

The loadWaveResource method of the DirectSoundResource Class contains the following signatures:

loadWaveResource(int handle, DSResourceDesc resourceDesc, byte[] wave)
loadWaveResource(int handle, DSResourceDesc resourceDesc)

loadWaveResource(int handle, DSResourceDesc resourceDesc, byte[] wave)

Loads a wave resource from the given module.

Syntax

public void loadWaveResource(int handle, DSResourceDesc resourceDesc, byte[] wave);

Parameters

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.

loadWaveResource(int handle, DSResourceDesc resourceDesc)

Loads a wave resource and returns it as a wave format object.

Syntax

public WaveFormatEx loadWaveResource(int handle, DSResourceDesc resourceDesc);

Return Value

Returns the WaveFormatEx object if successful; null otherwise.

Parameters

handle Handle of the module containing the resource.
resourceDesc The DSResourceDesc object that receives a description of the resource.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.