简体   繁体   English

在 Ubuntu 18.04 上,ALSA 的 snd_pcm_get_chmap 总是在我的默认设备(脉冲)上返回 NULL

[英]ALSA's snd_pcm_get_chmap always returns NULL on my default device (pulse) on Ubuntu 18.04

I'm successfully rendering audio with alsa, however I'm completely incapable of determining the channel mapping.我正在使用 alsa 成功渲染音频,但是我完全无法确定通道映射。 As various sources have stated, I'm calling snd_pcm_get_chmap after the hw & sw params are set and the device is prepared.正如各种消息来源所说,我在设置硬件和软件参数并准备好设备后调用snd_pcm_get_chmap

snd_config_get_string returns 'pulse' for this device which I'm presuming means it's an alsa/pulseaudio bridge for want of a better term. snd_config_get_string为这个设备返回“pulse”,我认为这意味着它是一个 alsa/pulseaudio 桥接器,需要一个更好的术语。

Calling snd_strerror(errno) after snd_pcm_get_chmap fails is returning 'Socket operation on non-socket'.snd_pcm_get_chmap失败后调用snd_strerror(errno)返回“非套接字上的套接字操作”。 I should probably add that I'm debugging remotely from Visual Studio 2017 as that may be related.我应该补充一点,我正在从 Visual Studio 2017 远程调试,因为这可能是相关的。

I'd really like to be able to get the channel mapping.我真的很想能够获得频道映射。 Any suggestions appreciated.任何建议表示赞赏。

Pulse audio's list of ALSA issues states that it isn't currently possible to obtain the channel map. Pulse audio 的 ALSA 问题列表指出,目前无法获得频道地图。 https://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Issues/ https://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Issues/

There's no way to query the active channel map for a device无法查询设备的活动频道地图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM