Skip to content

Playback stuttering #590

@vyfor

Description

@vyfor

Hello,
I'm facing noticeable audio stutters whenever I switch between applications (e.g. by Alt+Tabbing). When the same issue occurred in cpal, I simply set the buffer size to be a Fixed(4096) and that fixed the problem. However, I'm not quite sure if I can do the same in rodio. Here's how I tried to do it:

let default_config = device.default_output_config()?;
let config = SupportedStreamConfig::new(
    default_config.channels(),
    default_config.sample_rate(),
    SupportedBufferSize::Range {
        min: BUFFER_SIZE,
        max: BUFFER_SIZE,
    },
    default_config.sample_format(),
);
let (_, _) = OutputStream::try_from_device_config(&device, config)?;

But no matter how low or high I set the BUFFER_SIZE, I still experience the stutters. Running on Windows 10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions