A dynamic binding to libvorbis.


Keywords
library, binding, audio
License
BSL-1.0
Install
dub fetch derelict-vorbis --version 2.0.0-beta.2

Documentation

DerelictVorbis

A dynamic binding to libvorbis version 1.3 for the D Programming Language.

Please see the sections on Compiling and Linking and The Derelict Loader, for information on how to build DerelictVorbis and load libvorbis at run time. In the meantime, here's some sample code.

import derelict.vorbis.vorbis;
import derelict.vorbis.enc;
import derelict.vorbis.file;

void main() {
    // Load the libvorbis library and its companion encoding and file libaries.
    import derelict.vorbis;

    /* Alternatively:
    import derelict.vorbis.codec,
           derelict.vorbis.enc,
           derelict.vorbis.file;
    */
    DerelictVorbis.load();
    DerelictVorbisEnc.load();
    DerelictVorbisFile.load();

    // Now libvorbis functions can be called.
    ...
}