GithubHelp home page GithubHelp logo

Comments (4)

qcapen avatar qcapen commented on May 27, 2024

This bug is caused by not processing several triggered internal audio events (event_sound_started and event_sound_stopped). These events were getting created, but never processed causing the internal sound events to become all used. The solution is to properly process all events in the audio interface tick function and reset events once they have been processed. This had nothing to do with the number of simultaneous sounds set for each track. The total number of events allocated was set to 32 so the bug would be evident after 32 total sounds had been played after initializing the audio system.

from mpf-mc.

qcapen avatar qcapen commented on May 27, 2024

The bug is actually triggered much faster than 32 sounds played as several internal events are actually triggered when each sound is played.

from mpf-mc.

qcapen avatar qcapen commented on May 27, 2024

Time to create some additional methods to support better audio tests so I can write a test for this before fixing it.

from mpf-mc.

qcapen avatar qcapen commented on May 27, 2024

Should be fixed now

from mpf-mc.

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.