external rate plugin: broken 16-bit stereo stream conversion (interleaved -> non-interleaved)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 18/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- c
调研方向
The fault is in the external rate plugin's 16-bit stereo path, which converts interleaved input to non-interleaved output with libspeex, and the 32-bit path is reported as unaffected. Start from the S16 sample conversion code in the external rate plugin and compare it with the 32-bit path. Reproducing it needs an E-MU 0404b card, and the issue gives no file names. Done means 16-bit stereo output is undistorted at both up- and down-sampling.
由索引模型根据 Issue 内容生成。
描述
this setup:
Plug PCM: Rate conversion PCM (44100, sformat=S16_LE)
Converter: libspeex (external)
Protocol version: 10003
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 17832
period_size : 4458
period_time : 92879
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 4458
period_event : 0
start_threshold : 17832
stop_threshold : 17832
silence_threshold: 0
silence_size : 0
boundary : 5019261784704417792
Slave: Hardware PCM card 0 'E-MU 0404b PCI [MAEM8852]' device 3 subdevice 0
Its setup is:
stream : PLAYBACK
access : MMAP_NONINTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 16
buffer_size : 16384
period_size : 4096
period_time : 92879
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 4096
period_event : 0
start_threshold : 16384
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 4611686018427387904
appl_ptr : 0
hw_ptr : 0
garbles the output rather impressively, though it's still recognizable as the input, more or less.
it happens both when up-sampling and down-sampling. it doesn't happen when not re-sampling.
it doesn't happen when the hardware takes 32-bit samples, so i guess it's somewhere in the optimized s16 paths.
it doesn't happen with mono.
this is not reproducible with the upstream emu10k1 driver, as the multichannel device demands 16 channels, which causes the route conversion plugin to be inserted, which sidesteps the issue. and the regular pcm device accepts any rate.
- 主要语言
- C
- 星标
- 501
- 派生
- 227
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
alsa-project/alsa-lib 的其他 Issue
-
USB-Audio: ASUS ROG Zenith II S/PDIF output mapped to wrong PCM device可能已有人在做 @byrcolin 于 49 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
alsa-project/alsa-lib#532 ·
-
难度 5/5 一周以上 新手友好度 12/100
alsa-project/alsa-lib#530 · 9 个 reaction ·
-
kernel driver
难度 5/5 一周以上 新手友好度 12/100
alsa-project/alsa-lib#529 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
alsa-project/alsa-lib#522 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 15/100
alsa-project/alsa-lib#519 ·
查看 alsa-project/alsa-lib 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
fastfetch-cli/fastfetch#2780 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
elliotchance/vsql#2079 ·
维护者通常 1 天内回复
-
category:port-update
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 2 天内回复
-
docs
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 61/100
维护者通常 13 天内回复