Skip to content

Make audio callback allocation-free#162

Draft
balloob-travel wants to merge 1 commit intoSendspin:mainfrom
balloob-travel:codex/make-audio-callback-allocation-free
Draft

Make audio callback allocation-free#162
balloob-travel wants to merge 1 commit intoSendspin:mainfrom
balloob-travel:codex/make-audio-callback-allocation-free

Conversation

@balloob-travel
Copy link
Contributor

Summary

  • copy queued PCM directly into PortAudio's output buffer instead of building temporary callback buffers
  • reuse scratch storage for silence and duplicated frames while preserving sync-correction behavior
  • add pytest coverage for the callback fast path and drop-correction path, and include pytest in test extras

Testing

  • uv run pre-commit run --files pyproject.toml sendspin/audio.py tests/test_audio.py
  • python -m pytest tests/test_audio.py

@balloob-travel balloob-travel force-pushed the codex/make-audio-callback-allocation-free branch from 569edf9 to b087ca6 Compare March 8, 2026 21:02
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.

2 participants