Git Product home page Git Product logo

Comments (2)

flibitijibibo avatar flibitijibibo commented on July 19, 2024

Are you calling AudioEngine.Update()? The problem is that audio sources are not getting cleaned up, as they should in these two spots:

https://github.com/flibitijibibo/MonoGame/blob/monogame-sdl2/MonoGame.Framework/Audio/XactClip.cs#L30
https://github.com/flibitijibibo/MonoGame/blob/monogame-sdl2/MonoGame.Framework/SDL2/Audio/OpenALSoundController.cs#L185

The first is for sounds played by a Cue, while the second is for SoundEffects. SoundEffects I would expect to always get cleaned up, since that happens every Tick, but if Cues are not updated by the AudioEngine, you will get this leak.

If you want to debug this, track these SoundEffectInstance pools.

from fna-mghistory.

3vi1 avatar 3vi1 commented on July 19, 2024

Doh! You nailed it on the first try. It works fine after I added the call to AudioEngine.Update.

I never used XACT before, and the quick example I had looked at to write my test was missing that important detail.

Thanks for the mentoring!

from fna-mghistory.

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.