Skip to content

Too many sounds at once crash SoundCenSe #16

Description

@BitBlitObviMormon

I use a lot of scripts while playing Dwarf Fortress' adventure mode and I noticed that SoundCenSe randomly crashes while I play. I later found out that it consistently crashes whenever I use scripts that rapidly generate a lot of sounds in the log (such as picking up and dropping items).

If the sound queue gets too backed up with something along the lines of 200 or so sounds waiting to be played then SoundCenSe crashes. This limit won't really be reached in normal gameplay (unless an absurdly large fortress has a tantrum spiral), but it leads to problems when running scripts.

I tried this again with the original soundsense and it doesn't crash, but it spends a lot of CPU trying to play 50+ sounds / second)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions