On Sat, Jul 24, 2021 at 8:58 AM samiam moorecad.com samiam@moorecad.com wrote:
Hi, I am trying to debug an issue in my code, and want to gain a bit more visibility on the issue.
Hello, Scott!
I gather that the target routine of the crash, alsa_lib_resampler_process_int(), is in the alsa-plugins module, so I downloaded alsa-plugins-1.2.5 just so I could gain some insight into what the code is doing when it crashes. I should state quickly here that I believe the crash is my fault, but I am just trying to figure out why it is happening.
I was unable to find the routine alsa_lib_resampler_process_int() in that package. Also a ./configure followed by make does not work on it (goes to the idea of substituting my own compiled .so for debug purposes):
/home/samiam/projects/alsa/alsa-plugins-1.2.5/usb_stream/pcm_usb_stream.c:480: undefined reference to `snd_config_get_card'
snd_config_get_card is a new function in alsa-lib 1.2.5 and you're probably linking against an old version of alsa-lib which won't work! See: https://www.alsa-project.org/wiki/Changes_v1.2.4_v1.2.5
Although obviously I didn't put a lot of effort into making it work.
DId the routine alsa_lib_resampler_process_int() get eliminated in later editions of the plugins? or am I looking in the wrong place?
See https://github.com/alsa-project/alsa-plugins/blob/master/pph/speex_resampler... and https://github.com/alsa-project/alsa-plugins/blob/3bd62394e75835df5dd0a9874c...
From my understanding of that code, it renames
speex_resampler_process_int to alsa_lib_resampler_process_int to avoid symbol name clashes.
Regards, Geraldo Nascimento