AudioLoader
AudioLoader ⟵ Loader
Class for loading audio buffers from WAV files.
This class extends the base Loader to
specifically handle audio loading. It uses the internal file system to
load audio data and creates an AudioBuffer object that can be assigned to
Audio or AudioEmitter. Currently *.wav (PCM, 8-bit
or 16-bit) is supported.
- Loads audio from embedded files
- Detects WAV from the URL or file magic
- Creates AudioBuffer objects with 16-bit samples
Methods
AudioLoader()
Default constructor - creates an audio loader with default settings
AudioLoader(LoaderManager* manager)
Constructor with loading manager
| manager | Loading manager to use for this loader |
AudioLoader* clone() const
Creates a copy of this audio loader
void copy(const AudioLoader& other)
Copies properties from another audio loader
| other | Source audio loader |
AudioBuffer* load(const string& url)
Loads an audio buffer from the given URL. Supports *.wav
| url | Path to the audio file | "" |
virtual void* parse(const void* data) override
Parses loaded encoded data into an audio buffer object
| data | Raw encoded data to parse |
Properties
| isAudioLoader | bool | Read |