0
0

Hi

i using the FMod lib in c# and when I try it to load the usercontrol in a testform i get the follwoung error:

[quote:3772ts23]Instances of this error (1)

  1. Hide Call Stack

at FMOD.Factory.FMOD_System_Create(IntPtr& system)
at FMOD.Factory.System_Create(System& system) in C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Visual Studio 2008\Projects\AKMusicPlayer\AKMusicPlayer\fmod.cs:line 1660
at AKMusicPlayer.AKBigPlayer.AKBigPlayer_Load(Object sender, EventArgs e) in C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Visual Studio 2008\Projects\AKMusicPlayer\AKMusicPlayer\AKBigPlayer.cs:line 35
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
[/quote:3772ts23]

i use the follwing code in my control:

[code:3772ts23] private void AKBigPlayer_Load(object sender, EventArgs e)
{
uint version = 0;
FMOD.RESULT result;

        /* Create system object and initalize */
        result = FMOD.Factory.System_Create(ref system);
        ERRCHECK(result);

        result = system.getVersion(ref version);
        ERRCHECK(result);
        if (version < FMOD.VERSION.number)
        {
            MessageBox.Show("Error! You are using an old version of FMOD " + version.ToString("X") + ".  This program requires " + FMOD.VERSION.number.ToString("X") + ".");
            Application.Exit();
        }

        result = system.init(32, FMOD.INITFLAG.NORMAL, (IntPtr)null);
        ERRCHECK(result);

        result = system.createSound("../../../../../examples/media/drumloop.wav", FMOD.MODE.HARDWARE, ref sound1);
        ERRCHECK(result);

    }[/code:3772ts23]

Any suggestions?

Greetz

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.