Open TFCx opened 3 years ago
Do you have jack running? The alsa backend of cpal doesn't seem to never return this error.
I'm on Win10, so I guess no Alsa, nor JACK? It should go through WASAPI, right ? (i'm in no way familiar with audio drivers :/ )
(anyway, thanks for the quick answer @bjorn3 :) )
I'm on Win10, so I guess no Alsa, nor JACK?
My bad. Should have looked at the file paths in the backtrace. Windows uses wasapi by default:
There are six locations at which this error can happen. Just search for StreamConfigNotSupported
in https://github.com/RustAudio/cpal/blob/70408a92ec78533ed275a90e55415041f94c1874/src/host/wasapi/device.rs I think it may be useful to figure out which one is responsible. You could patch cpal to add a debug message before returning the error at each location or you could set a breakpoint at each location. For those with .ok_or(BuildStreamError::StreamConfigNotSupported)?
you may need to singlestep a few times to see if it actually returns an error or not.
(disclaimer: not a dev of cpal. this is the first time I look at the codebase)
Ok. I've tracing the calls: bevy uses a bevy_audio crate, that uses a rodio crate that uses cpal.
The cpal error seems to emerge here:
Does anything seems strange to anyone? (like the audio format description?)
I'm trying to compile a bevy minimal example...
And i'm getting this error
Can I provide more information?