Provide write access to sound files.
// Create a sound file, ogg/vorbis format, 44100 Hz, stereo auto file = new OutputSoundFile(); if (!file.openFromFile("music.ogg", 44100, 2)) { //error } while (...) { // Read or generate audio samples from your custom source short[] samples = ...; // Write them to the file file.write(samples); }
$(INPUTSOUNDFILE_LINK)
* This class encodes audio samples to a sound file.
It is used internally by higher-level classes such as $(SOUNDBUFFER_LINK), but can also be useful if you want to create audio files from custom data sources, like generated audio samples.