0
0

I’m trying to figure out why the NOSOUND_NRT flag doesn’t work for me.
My problem is that the NOSOUND_NRT and NOSOUND flags behave exactly the same (they work in realtime – or at least that’s what channel.getPosition(…) tells me).

Here is the code I’m using (C#):
flags = FMOD.INITFLAG.STREAM_FROM_UPDATE;
system.init(32, flags, (IntPtr)null);
system.setOutput(FMOD.OUTPUTTYPE.NOSOUND_NRT);
….
system.createSound(file, (FMOD.MODE._2D | FMOD.MODE.SOFTWARE | FMOD.MODE.CREATESTREAM), ref sound);
system.playSound(FMOD.CHANNELINDEX.FREE, sound, false, ref channel);

I’m calling system.update() and channel.getPosition(…) in a DispatcherTimer with a 10ms interval set.

Any help would be greatly appreciated.

Thanks,
Alex

  • You must to post comments
0
0

You need to call System::setOutput() before you call System::init(), otherwise it won’t work. It’s documented in the Remarks section of setOutput(), but it’s an easy thing to miss if you’re not paying attention.

  • G
  • You must to post comments
0
0

oops, you are right. I’m sorry.
But still, I’ve placed to setOutput() before init() and it still ain’t working (still realtime).

  • You must to post comments
0
0

strange, if I refactor my code in a loop as shown by Adiss here:
http://52.88.2.202/forum/viewtopic.php?t=8292
it works as it should (though it doesn’t in the timer EventHandler)

Anyway, problem solved. Thank you!

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.