Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Renamed the `wasm-beep` and `audioworklet-beep` examples to `webaudio` and `audioworklet`.
- **ALSA**: Update `alsa` dependency to 0.12.
- **Linux**: `realtime` can now promote threads without requiring `realtime-dbus`.
- **PipeWire**: Set `node.rate` property.

### Deprecated

Expand Down
7 changes: 6 additions & 1 deletion src/host/pipewire/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@ impl Device {

// Group input and output nodes so PipeWire schedules them in the same quantum,
// preventing phase drift between simultaneous input/output streams.
properties.insert("node.group", format!("cpal-{}", std::process::id()));
properties.insert(
*pw::keys::NODE_GROUP,
format!("cpal-{}", std::process::id()),
);

properties.insert(*pw::keys::NODE_RATE, format!("1/{}", config.sample_rate));

if let BufferSize::Fixed(buffer_size) = config.buffer_size {
properties.insert(
Expand Down
Loading