Skip to content

Documentation for Mixer::open_audio() gives different advice for chunk_size than the official SDL docs #1517

@j-ac

Description

@j-ac

Rust documentation gives the following advice for the chunksize parameter on mixer's open_audio()

It is recommended to choose values between 256 and 1024, depending on whether you prefer latency or compatibility ...

while the official docs say

... 2048 is often a reasonable default, but your app might want to experiment with 1024 or 4096.

In my own experimentation I found that 256-1024 creates very crackly audio on the files I tried. I feel that the official 1024-4096 guideline is probably much more broadly applicable today, and the rust docs should consider updating to reflect this

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions