Codec for Fmod Ex, http://www.fmod.org/

codec_sid.dll
Ver. 1.21
Copyright (c), Blazer Studios, 2008.
Visit http://andreas.blazer.nu for latest version
Built with Sidplay2, http://sidplay2.sourceforge.net

Usage:

You have to

#define FMOD_TIMEUNIT_SUBSONG			0x20000000

you can put it in fmod.h for example

put codec_sid.dll and libsidplay2.dll in the same directory as your fmod-dll.
To load the plugin in C/c++ code:
system->loadPlugin("codec_sid.dll", 0, 0);

Then load and play file as usual.

To select a subsong you do like this:

fmod_channel->setPosition(x, FMOD_TIMEUNIT_SUBSONG))

where x is the number of the subsong.

Use

fmod_sound getLength(&subsongs, FMOD_TIMEUNIT_SUBSONG);

to get the number of subsongs in the track

Use

fmod_sound getposition(&subsongs, FMOD_TIMEUNIT_SUBSONG );

to get the current subsong


If you find any bugs etc. contact me at andreas@blazer.nu

1.21 Defined FMOD_TIMEUNIT_SUBSONG to handle subsongs and some better error checking

1.2 Subsongs bug fixed

1.1 Subsongs support