Skip to content

fix: update python stubs#21

Merged
nicokim merged 4 commits intomainfrom
fix/update-python-stubs
Feb 26, 2026
Merged

fix: update python stubs#21
nicokim merged 4 commits intomainfrom
fix/update-python-stubs

Conversation

@nicokim
Copy link
Owner

@nicokim nicokim commented Feb 26, 2026

No description provided.

- Update _pyaudiocast.pyi: remove write_array/write_f32, unified write()
  with all supported types, add clear(), make sample_rate/channels optional
- Use importlib.metadata for __version__ instead of hardcoded value
- Negotiate best sample rate/format instead of failing on unsupported configs
- Add linear interpolation resampling (e.g. 22050Hz -> 48000Hz)
- Add channel upmix (e.g. mono -> stereo)
- Expose device_sample_rate and device_channels properties
- Update type stubs with new properties
- Use importlib.metadata for dynamic __version__
- Add pip install instructions
- Document auto-negotiate, resample, and upmix features
- Add device_sample_rate/device_channels to API reference
- Update architecture diagram with resample/upmix step
- Update examples: import as pyaudiocast, show device info
- Add play_wav.py and stream_with_interrupt.py examples
Skip maturin's built-in auditwheel and run auditwheel repair manually
with --exclude libasound.so.2. This ensures the wheel uses the system's
ALSA which has PipeWire/PulseAudio plugin support, instead of bundling
a bare libasound that lacks plugin bridges.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@nicokim nicokim merged commit b8211eb into main Feb 26, 2026
4 checks passed
@nicokim nicokim deleted the fix/update-python-stubs branch February 26, 2026 00:27
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