Skip to content

[BUGFIX] Eliminate real-time allocations in WaveNet#141

Merged
sdatkinson merged 5 commits into
mainfrom
49-alloc
Mar 8, 2025
Merged

[BUGFIX] Eliminate real-time allocations in WaveNet#141
sdatkinson merged 5 commits into
mainfrom
49-alloc

Conversation

@sdatkinson

Copy link
Copy Markdown
Owner
  • Non-gating WaveNet should be real-time safe (benchmodel with example WaveNet runs clean).
  • Some tests would be great though.

Sort-of breaking changes (causing me to bump to 0.3.0):

  • Reset() calls prewarm(). (This is now ok because it calls SetMaxBufferSize() first, which can handle allocation of model arrays.)
  • mMaxBufferSize defaults to 0 instead of 512 on construction. This is nice and conservative but might break code that was expecting teh mdoel to come "ready to go" out of get_dsp() (However, Reset() should be called before using the model!)

Resolves #49

@sdatkinson

Copy link
Copy Markdown
Owner Author

Ugh, I need to get #140 sorted. I'll get that figured out before I release 0.3.0.

@sdatkinson sdatkinson merged commit 8469687 into main Mar 8, 2025
@sdatkinson sdatkinson deleted the 49-alloc branch March 8, 2025 07:42
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.

Do not allocate memory during WaveNet processing

1 participant