If ASIO fails to load, the build crashes, but I need it to be optional
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
- 34/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- rust
- Área
- audio-video-rtc, backend
Línea de trabajo
Start by reading the issue’s ASIO build configuration and how backend selection handles unavailable devices; the issue names no source files or tests. The requested behavior is to let an application use WASAPI when ASIO setup fails and expose an error for debugging. Done means the issue’s fallback scenario can run without ASIO and the failure is diagnosable.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello,
I am developing an audio application and I need to have ASIO support for low-latency. So, considering that, in my cargo.toml I have "cpal = { version = "0.17.0", features = ["asio"] }". However, if it fails to download SDK or ASIO doesn't get properly loaded for whatever reason, the app just crashes and never runs. Which is not ideal for me.
Errors in my example:
error: IO error for operation on C:...\asio_sdk\host: The system cannot find the path specified. (os error 3)
error: IO error for operation on C:...\asio_sdk\host/pc: The system cannot find the path specified. (os error 3)
error: IO error for operation on C:...\asio_sdk\common: The system cannot find the path specified. (os error 3)
I don't know how this error happened, I already had ASIO SDK installed because I use FL Studio, but the folder isn't named "asio_sdk", it is "ASIOSDK". And because of that, it crashes, but I would like it to just fallback to WASAPI for example and log errors for debugging. ASIO isn't required for my application.
I know how to fix this error btw, I just set "CPAL_ASIO_DIR" env variable myself, that's not an issue.
Any ideas on how I can achieve this at the moment? Or if it might be possible in the future? Thanks for taking the time to read this. Any help is greatly appreciated.
- Lenguaje dominante
- Rust
- Estrellas
- 4k
- Forks
- 554
- Merge medio
- 3 d 3 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RustAudio/cpal
-
aaudio: dynamic buffer tuning never grows the buffer (set_buffer_size_in_frames reports Err on success)Posiblemente ocupada @dannyward630 la tomó hace 3 días. Abiertohost - aaudio platform - android
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
WebAudio wasm build fails with wasm-bindgen panic=unwind closuresPosiblemente ocupada @bogusyogi la tomó hace 11 días. Abiertohost - webaudio platform - web
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
RustAudio/cpal#1394 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
New WASAPI implementationAbiertocode quality dependencies host - wasapi platform - windows
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
RustAudio/cpal#1416 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
host - pipewire platform - linux
Dificultad 4/5 1-2 días Aptitud para principiantes 52/100
RustAudio/cpal#1405 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
WASAPI: default-device activation fails with RPC_E_CHANGED_MODE after endpoint-notification callbacks put thread-pool threads into an STAPosiblemente ocupada @dannyward630 la tomó hace 4 días. Abiertocorrectness host - wasapi platform - windows
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
RustAudio/cpal#1402 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de RustAudio/cpal
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
FalkorDB/FalkorDB#3597 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mozilla-services/syncstorage-rs#2715 ·
Los mantenedores suelen responder en 1 día