Package com.jme3.audio.plugins
Class WAVLoader
java.lang.Object
com.jme3.audio.plugins.WAVLoader
- All Implemented Interfaces:
AssetLoader
An
AssetLoader
for loading WAV audio files.
This loader supports PCM (Pulse Code Modulation) WAV files,
both as in-memory AudioBuffer
s and streaming AudioStream
s.
It handles 8-bit and 16-bit audio formats.
The WAV file format consists of chunks. This loader specifically parses the 'RIFF', 'WAVE', 'fmt ', and 'data' chunks.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WAVLoader
public WAVLoader()
-
-
Method Details
-
load
Description copied from interface:AssetLoader
Loads asset from the given input stream, parsing it into an application-usable object.- Specified by:
load
in interfaceAssetLoader
- Parameters:
info
- the located asset- Returns:
- An object representing the resource.
- Throws:
IOException
- If an I/O error occurs while loading
-