PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.37k stars 286 forks source link

ALSA: set the direction of snd_pcm_hw_params_set_*_near function to 0 #896

Open tatsuki-makino opened 2 months ago

tatsuki-makino commented 2 months ago

Describe the bug If this is not set, the selection of open and closed intervals may not be stable. This may have resulted in devices that could not be selected.

To Reproduce I can't get it right :)

Expected behavior All devices configured in ~/.asoundrc, etc. will be made available by PortAudio.

Actual behavior Some devices configured in ~/.asoundrc are not listed by PortAudio.

Desktop (please complete the following information):

Additional context I feel I am getting better results with this patch. patch.txt

RossBencina commented 2 months ago

This "issue" should focus on the issue :) It seems like this is a bug report and the fix is secondary. Do you think it would be appropriate to rename this ticket "FreeBSD: Some ALSA devices configured in ~/.asoundrc are not listed by PortAudio." ?

Then the possible fix is "ALSA: set the direction of snd_pcm_hw_paramsset*_near function to 0](https://github.com/PortAudio/portaudio/issues/896#top)"

To Reproduce: I can't get it right :)

Please clarify. Can you reproduce it or not? What led you to believe that there is a problem?