Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Actual buffer size depends on sample rate (macOS)

Abierto
#508 2 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust

Línea de trabajo

The report identifies the CoreAudio backend on macOS and gives a reproducible buffer-size relationship, but names no files or tests. Start by locating the CoreAudio stream setup and the callback buffer sizing logic, then inspect how requested sample rates and buffer sizes are passed through. Done means the callback buffer matches the requested size across sample rates; verify with input and output streams using the reported 64-frame request at 48 kHz.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

host - coreaudio platform - macos

This problem is specific to the CoreAudio backend on macOS.

The actual buffer size differs from requested buffer depending on requested sample rate.

Using the built-in sound card on an MBP, the requested buffer size X is only observed as the actual buffer size Y in the callbacks when running at SR 44.1kHz. When requesting other sample rates, the relation seems to be that observed buffer size, Y appears as Y = ceil(X*SR/44.1).

For example, requesting X=64, SR=48000 yields Y=70.

In other words, the observed behaviour is almost as if the requested buffer size is in the native sample rate domain rather than in the domain of the requested sample rate.

The expected result would be that the requested buffer size is also in the domain of the requested sample rate.

In the test, I have both input- and output streams running with the same requested configuration.

Env: MBP 14.3 (2017), macOS 11.0.1

Lenguaje dominante
Rust
Estrellas
4k
Forks
554
Merge medio
3 d 3 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RustAudio/cpal

Todos los issues de RustAudio/cpal

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.