Description

A dynamic binding to libvorbis.

Package Information

Version2.0.0-alpha.3 (2017-Apr-16)
Homepage https://github.com/DerelictOrg/DerelictVorbis
Repository https://github.com/DerelictOrg/DerelictVorbis
LicenseBoost
AuthorsMike Parker
Registered byMike Parker
Dependencies

derelict-ogg

derelict-util

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

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.
    ...
}

Available versions

2.0.0-alpha.3 2.0.0-alpha.2 2.0.0-alpha.1 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 ~master ~2.0 ~1.3