pjproject
pjproject copied to clipboard
Default for PJMEDIA_AUD_DEV_INFO_NAME_LEN on linux systems is too small
Describe the bug
PJMEDIA_AUD_DEV_INFO_NAME_LEN defaults to 64 here and if you print the audio device information, the name is cut off which makes it impossible to distinguish between certain entries.
Running configure with an override for PJMEDIA_AUD_DEV_INFO_NAME_LEN works around the problem of course.
Steps to reproduce
Compile portaudio (master) with "pulseaudio" support. Compile the auddemo
sample and run it. The output on the top shows
11:16:21.303 os_core_unix.c !pjlib 2.14-dev for POSIX initialized
PortAudio sound library initialized, status=0
PortAudio host api count=1
Sound device count=17
Found 17 devices:
0: PA [Default Sink] (0/32)
1: PA [Default Source] (32/0)
2: PA [Family 17h/19h HD Audio Controller Speaker + Headphones] (0/2)
3: PA [Yealink WH62 Digital Stereo (IEC958)] (0/2)
4: PA [Renoir Radeon High Definition Audio Controller HDMI / DisplayPo] (0/2)
5: PA [Renoir Radeon High Definition Audio Controller HDMI / DisplayPo] (0/2)
6: PA [Renoir Radeon High Definition Audio Controller HDMI / DisplayPo] (0/2)
7: PA [Renoir Radeon High Definition Audio Controller HDMI / DisplayPo] (0/2)
8: PA [Monitor of Family 17h/19h HD Audio Controller Speaker + Headpho] (2/0)
9: PA [Family 17h/19h HD Audio Controller Headphones Stereo Microphone] (2/0)
10: PA [Family 17h/19h HD Audio Controller Digital Microphone] (2/0)
11: PA [Monitor of Yealink WH62 Digital Stereo (IEC958)] (2/0)
12: PA [Yealink WH62 Digital Stereo (IEC958)] (2/0)
13: PA [Monitor of Renoir Radeon High Definition Audio Controller HDMI ] (2/0)
14: PA [Monitor of Renoir Radeon High Definition Audio Controller HDMI ] (2/0)
15: PA [Monitor of Renoir Radeon High Definition Audio Controller HDMI ] (2/0)
16: PA [Monitor of Renoir Radeon High Definition Audio Controller HDMI ] (2/0)
on my system. I.e. the HDMI enumeration is not visible.
PJSIP version
master
Context
Linux, Fedora 40 Thinkpad T14. Portaudio (master) with pulse support.
Log, call stack, etc
No stacks available.