Skip to content

feat: universal resampler#956

Open
mdydek wants to merge 7 commits intomainfrom
feat/universal-resampler
Open

feat: universal resampler#956
mdydek wants to merge 7 commits intomainfrom
feat/universal-resampler

Conversation

@mdydek
Copy link
Contributor

@mdydek mdydek commented Feb 19, 2026

Closes RNAA-383

⚠️ Breaking changes ⚠️

Introduced changes

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage
  • Added support for web
  • Updated old arch android spec file

@mdydek mdydek self-assigned this Feb 19, 2026
@mdydek mdydek added the feature New feature label Feb 19, 2026
@mdydek mdydek requested a review from poneciak57 March 2, 2026 14:49
Copy link
Contributor

@poneciak57 poneciak57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍

int excess = outLen - toCopy;
if (excess > 0) {
for (int ch = 0; ch < channelCount_; ++ch) {
overflowBuffers_[ch].resize(overflowSize_ + excess);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allocation on Audio Thread

std::shared_ptr<AudioBuffer> resamplerInputBuffer_;

// Accumulates resampled output across calls
std::vector<std::vector<float>> overflowBuffers_;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not AudioBuffer?

Copy link
Contributor

@poneciak57 poneciak57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allocations on Audio thread :rage3:

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

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants