To create the device I use a function similar to Irrlicht's createDevice function called createAudioDevice. To add it to the dll exports I put the declaration inside irrlicht.h just below the declaration of createDevice like this:
Code: Select all
IRRLICHT_API IrrlichtDevice* createDevice(
video::EDriverType deviceType = video::EDT_SOFTWARE,
const core::dimension2d<s32>& windowSize = core::dimension2d<s32>(640,480),
u32 bits = 16,
bool fullscreen = false,
bool stencilbuffer=false,
IEventReceiver* receiver = 0,
const wchar_t* sdk_version_do_not_use = IRRLICHT_SDK_VERSION);
//! Creates an Audio device. deviceType can be audio::EAD_NULL, audio::EAD_AUDIERE or audio::EAD_FMOD (if compiled with USE_FMOD)
IRRLICHT_API audio::IAudioDevice* createAudioDevice(audio::eAudioDevice deviceType, bool music);syntax error before '*' token
What am I doing wrong??