Class WAVLoader

java.lang.Object
com.jme3.audio.plugins.WAVLoader
All Implemented Interfaces:
AssetLoader

public class WAVLoader extends Object implements AssetLoader
An AssetLoader for loading WAV audio files. This loader supports PCM (Pulse Code Modulation) WAV files, both as in-memory AudioBuffers and streaming AudioStreams. 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 Details

    • WAVLoader

      public WAVLoader()
  • Method Details

    • load

      public Object load(AssetInfo info) throws IOException
      Description copied from interface: AssetLoader
      Loads asset from the given input stream, parsing it into an application-usable object.
      Specified by:
      load in interface AssetLoader
      Parameters:
      info - the located asset
      Returns:
      An object representing the resource.
      Throws:
      IOException - If an I/O error occurs while loading