0
0

Using version 4.30.02 + C#

[code:210mhd1d]
{
string path = "";
path = "/../audio/music/name/" + "file.fsb";

    Sound master = new Sound();
    Errcheck(FMSystem.createSound(path, MODE.DEFAULT | MODE.SOFTWARE | MODE.LOOP_NORMAL | MODE.CREATESTREAM, ref master));

    master.release();

    master = new Sound();

    Errcheck(System.createSound(path, MODE.DEFAULT | MODE.SOFTWARE | MODE.LOOP_NORMAL | MODE.CREATESTREAM, ref master));

}
[/code:210mhd1d]

Getting a couple of those in the log, right before the crash:
"FMOD: OutputWASAPI::feederUpdate : Starvation detected in WASAPI output buffer!"

This leads to random crashes here. I couldn’t find any reason.

  • You must to post comments
0
0

Hi JoseCastro,

I couldn’t reproduce any crash using the code you posted, are you sure the crash is coming from this part of the code? What does your ErrCheck function do?

[quote:2ed3upsk]"FMOD: OutputWASAPI::feederUpdate : Starvation detected in WASAPI output buffer!"[/quote:2ed3upsk]
The WASAPI ouput mode will report starvation if you stop on a breakpoint (because the windows mixer is still going), this is usually a red herring.

The are examples of how to use the FMOD C# api in the examples_csharp of your FMOD install directory. These might help track down your crash.

I have a couple of suggestions for your code you might find useful:

[code:2ed3upsk] Sound master = new Sound(); [/code:2ed3upsk]
Don’t use the default constructor, createSound is a factory method for creating sound objects. You should just use:
[code:2ed3upsk] Sound master = null; [/code:2ed3upsk]

[code:2ed3upsk]MODE.DEFAULT | MODE.SOFTWARE | MODE.LOOP_NORMAL | MODE.CREATESTREAM[/code:2ed3upsk]
The ‘DEFAULT’ flag is redundant here, you’re OR-ing in zero which has no effect.

-Pete

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.