JOAL v2.6.0-rc-20250706
JOAL, OpenAL® API Binding for Java™ (public API).
com.jogamp.openal.util.WAVLoader Class Reference

A Loader utility for (.wav) files. More...

Collaboration diagram for com.jogamp.openal.util.WAVLoader:

Static Public Member Functions

static WAVData loadFromFile (final String filename) throws ALException, IOException
 This method loads a (.wav) file into a WAVData object. More...
 
static WAVData loadFromStream (final InputStream stream) throws ALException, IOException
 This method loads a (.wav) file into a WAVData object. More...
 

Detailed Description

A Loader utility for (.wav) files.

Creates a WAVData object containing the data used by the AL.alBufferData method.

Definition at line 51 of file WAVLoader.java.

Member Function Documentation

◆ loadFromFile()

static WAVData com.jogamp.openal.util.WAVLoader.loadFromFile ( final String  filename) throws ALException, IOException
static

This method loads a (.wav) file into a WAVData object.

Parameters
filenameThe name of the (.wav) file
Returns
a WAVData object containing the audio data
Exceptions
ALExceptionif the format of the audio if not supported.
IOExceptionIf the file can no be found or some other IO error occurs

Definition at line 64 of file WAVLoader.java.

Here is the caller graph for this function:

◆ loadFromStream()

static WAVData com.jogamp.openal.util.WAVLoader.loadFromStream ( final InputStream  stream) throws ALException, IOException
static

This method loads a (.wav) file into a WAVData object.

Parameters
streamAn InputStream for the .WAV stream.
Returns
a WAVData object containing the audio data
Exceptions
ALExceptionif the format of the audio if not supported.
IOExceptionIf the file can no be found or some other IO error occurs

Definition at line 81 of file WAVLoader.java.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: