Microsoft SDK for Java

loadWaveFile

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

loadWaveFile(String name, DSResourceDesc resourceDesc, byte[] wave)
loadWaveFile(String name, DSResourceDesc resourceDesc)

loadWaveFile(String name, DSResourceDesc resourceDesc, byte[] wave)

Loads a wave resource from the given file.

Syntax

public void loadWaveFile(String name, DSResourceDesc resourceDesc, byte[] wave);

Parameters

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.

loadWaveFile(String name, DSResourceDesc resourceDesc)

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

Syntax

public WaveFormatEx loadWaveFile(String name, DSResourceDesc resourceDesc);

Return Value

Returns the WaveFormatEx object if successful; null otherwise.

Parameters

name Name of the file that contains the resource.
resourceDesc The DSResourceDesc object that receives a description of the resource.

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