DerelictOgg



Introduction

DerelictOgg is a D binding to the Ogg library.  As explained in the link, Ogg is only a multimedia container file format.  If you're wanting to be able to decode Ogg Vorbis sound files, see DerelictVorbis instead.

Using

  1. Always make sure the DerelictOgg source modules are available on your import path.
  2. In modules that make use of DerelictOgg, you will need to import the derelict.ogg.ogg module.
  3. Before calling any OpenOgg functions, you need to make a call to DerelictOgg.load(). This will load the shared library.

The following is a complete program that loads DerelictOgg:

import derelict.ogg.ogg;

void main()
{
	DerelictOgg.load();
	
	// now you can call Ogg functions
}

As with other Derelict packages, DerelictOgg will throw an exception if an error occurs while loading the shared library. For more information on Derelict exceptions, see the documentation for Loading/Unloading Shared Libraries.

Finally, the method DerelictOgg.unload() is provided for convenience. In normal practice you do not need to call this function, as Derelict will unload the library automatically when the app exits. You generally should only use this function if you need to unload DerelictOgg while the application is running.

Dependencies

DerelictUtil