GithubHelp home page GithubHelp logo

Comments (6)

Ragora avatar Ragora commented on September 15, 2024

I'd debug it if my anything worked. I'm running the same WildMIDI version but the playback still doesn't work. I'd guess that if mSong wasn't just somehow nullptr at that point, it would potentially be an issue in WildMIDI.

from opentesarena.

afritz1 avatar afritz1 commented on September 15, 2024

Is your soundfont path in options.txt set correctly? I'm using the freepats .zip package from here.

from opentesarena.

Ragora avatar Ragora commented on September 15, 2024

Looks like it's probably working now, just ran into the issue from #24 though. Time to fix that assertion!

Edit Works after that, let me attach the debugger and see what's going on.

Looks like nothing is wrong here, process is running fine. I'll set an explicit breakpoint on the destructor and see if there's anything amiss. But it looks like nothing weird is going on.

from opentesarena.

afritz1 avatar afritz1 commented on September 15, 2024

If I comment out WildMidi_Close(mSong);, then the program runs like normal and plays the music as intended, but it's obviously not closing the MIDI tracks then.

However, with WildMidi_Close(mSong) commented, Visual Studio then breaks at WildMidi_Shutdown() in ~WildMidiDevice() on application exit.

I tried getting the return code from WildMidi_Close(mSong), but the debugger can never get that far.

I wonder if this could be at all related to using a newer MSVCR__.dll than @psi29a's recommended MSVCR80.dll for WildMIDI (since MSVCR80.dll is intended for Visual Studio 2005).

from opentesarena.

Ragora avatar Ragora commented on September 15, 2024

I would see where it is breaking. You should be able to at least see what binary blob it halted in (a DLL name in the call stack or something). You could build WildMIDI as a debug library and link that so you can better debug what is going on as then it will have symbols to properly debug WIldMidi.

from opentesarena.

afritz1 avatar afritz1 commented on September 15, 2024

Well, I was able to build wildmidi_dynamic.dll and its associated debug files, and after putting them in the OpenTESArena library folder, the program doesn't have any trouble anymore with WildMIDI. Strange.

from opentesarena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.