external rate plugin: broken 16-bit stereo stream conversion (interleaved -> non-interleaved)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 18/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- c
- Área
- audio-video-rtc
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C
- Estrellas
- 501
- Forks
- 227
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de alsa-project/alsa-lib
-
USB-Audio: ASUS ROG Zenith II S/PDIF output mapped to wrong PCM devicePosiblemente ocupada @byrcolin la tomó hace 49 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
alsa-project/alsa-lib#532 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
alsa-project/alsa-lib#530 · 9 reacciones ·
-
kernel driver
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
alsa-project/alsa-lib#529 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
alsa-project/alsa-lib#522 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
alsa-project/alsa-lib#519 ·
Todos los issues de alsa-project/alsa-lib
Issues similares
-
docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
vim/vim#22107 · 1 comentario ·
Los mantenedores suelen responder en 13 días
-
threadpool: a failed `pthread_cond_wait` makes Mlucas hang instead of stoppingPosiblemente ocupada @leinardi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
primesearch/Mlucas#398 ·
-
Qoi as lossless video format?Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
-
slice
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Life-Framework/Life-Framework#6380 · 1 comentario ·
Los mantenedores suelen responder en 1 día