Guilford

Results 4 comments of Guilford

Hi @floooh, sorry to bother you, but have there been any updates regarding this issue? I'm experiencing the EXACT same problem. I'm on Arch Linux, and `snd_pcm_hw_params_set_rate_near` returns an error...

> Hmm I wonder why I essentially undid that commit in the followup commit here Yeah, I'm really wondering why, because it seems to be the best solution in my...

I found this related issue: https://github.com/not-fl3/macroquad/issues/584 And https://github.com/not-fl3/quad-snd/issues/49

Okay, so according to the official ALSA API documentation (https://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m___h_w___params.html), `snd_pcm_hw_params_set_rate_near()` tries to set the sample rate as close as possible to the requested value (`val`). Since the function's 4th...