0
0

trying to get asio working in c#, and having some trouble.. im doing the exact same sequence of events and getting this in fmod.log in c#

[quote:117bpnvt]FMOD: SystemI::init : maxchannels = 32, flags = 00000000, extradriverdata = 00000000
FMOD: SystemI::close :
FMOD: SystemI::close : Shut down streamer and FMOD_NONBLOCKING and FileSystem thread.
FMOD: SystemI::close : Remove all user channel groups.
FMOD: SystemI::close : Remove miscllaneous DSP stuff.
FMOD: SystemI::close : done.

FMOD: OutputASIO::init : Initializing.
FMOD: OutputASIO::init : loadDriver failed using ASIO Hammerfall DSP as the driver name (0).
[/quote:117bpnvt]

and the one in c++

[quote:117bpnvt]FMOD: SystemI::init : maxchannels = 32, flags = 00000000, extradriverdata = 00000000
FMOD: SystemI::close :
FMOD: SystemI::close : Shut down streamer and FMOD_NONBLOCKING and FileSystem thread.
FMOD: SystemI::close : Remove all user channel groups.
FMOD: SystemI::close : Remove miscllaneous DSP stuff.
FMOD: SystemI::close : done.

FMOD: OutputASIO::init : Initializing.
FMOD: SystemI::init : Set up software engine



[/quote:117bpnvt]

the c++ is working perfectly. the c# is failing. any ideas?

the code is pretty much like this in both:

[code:117bpnvt] rcode = _system.setDriver(0);
rcode = _system.setSpeakerMode(FMOD.SPEAKERMODE.RAW);
rcode = _system.setSoftwareFormat(44100, FMOD.SOUND_FORMAT.PCM16,
10 /* ten output channels */, 0,
FMOD.DSP_RESAMPLER.NOINTERP);
rcode = _system.init(32, FMOD.INITFLAG.NORMAL, IntPtr.Zero);[/code:117bpnvt]

  • You must to post comments
0
0

slightly more debugging has shown that the rc = CoCreateInstance(lpdrv->clsid,0,CLSCTX_INPROC_SERVER,lpdrv->clsid,asiodrv); in asiolist.cpp is failing with 0x80004002 (No Such Interface Supported)

but in c++, no failure exists :(

  • You must to post comments
0
0

SUCCESS!!!!!!

needed to add [STAThread] attribute to Main()

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.