Skip to content

Conversation

@heftig
Copy link

@heftig heftig commented Apr 26, 2019

I'm familiar with C but not with C++. I massaged the code (with some help from valgrind and asan) until it no longer crashed compressing the soundfonts I had, which are:

  • KOR Soundfont - GM Complete 4.51.sf2
  • OmegaGMGS2.sf2

I also cleaned up some warnings which appeared with -Wall. You might want to cherry-pick one or more of the individual commits even if you reject the PR as a whole.

heftig added 5 commits April 26, 2019 21:32
Avoids having an arbitrarily sized, big array on the stack. Also avoids
an extra copy.
Avoids stack overflows. The compressed sample data is appended to a
vector, avoiding constraining the size arbitrarily.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant