[BUG] [CRITICAL] Audio format mismatch leads to distorted sound playback
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- csharp
- Área
- audio-video-rtc
Línea de trabajo
Comienza con el ejemplo documentado usando InitializePlaybackDevice, AudioFormat, StreamDataProvider y SoundPlayer; después reproduce el problema con audio por debajo de 44 kHz y formatos que no coinciden. Rastrea cómo el dispositivo de reproducción y el reproductor usan sus formatos, y compara la reproducción entre las combinaciones indicadas. Se considera completado cuando los formatos de audio compatibles se reproducen a velocidad normal sin requerir un dispositivo independiente para cada formato.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Requirements
- I have searched the existing issues to ensure this bug has not already been reported.
- I have provided a clear and concise description of the bug.
- I have provided detailed steps to reproduce the bug.
- I have included a minimal reproducible example (MRE) if applicable.
- I have provided error messages and stack traces if applicable.
- I have completed the environment information.
1. Describe the Bug
Audio file and playback device format mismatch leads to distorted sound playback.
I need to create playback device for file's format unless I got distorted (fast or slow) sound play.
2. Steps to Reproduce
Just run the code with less than 44khz audio
3. Expected Behavior
I get "normal" sound play whatever format I choose.
4. Current Behavior
I get "distorted" sound play IF playback device format mismatches.
5. Minimal Reproducible Example (MRE)
This code is from the official documentation.
var engine = new MiniAudioEngine();
var format = AudioFormat.DvdHq;
using var playbackDevice = engine.InitializePlaybackDevice(null, format);
// Create a SoundPlayer
using var dataProvider = new StreamDataProvider(engine, File.OpenRead("audio.wav")); // Auto-detects format
var player = new SoundPlayer(engine, format, dataProvider);
// Add components to the device's MasterMixer
playbackDevice.MasterMixer.AddComponent(player);
// Start the device to enable its audio stream
playbackDevice.Start();
player.Play();
6. Error Messages and Stack Trace (if applicable)
SoundFlow Version
1.4.0
.NET Version
.NET 10
Operating System
Windows 11
Architecture
x64
Audio Backend Used (if known)
No response
Specific Audio Hardware (if relevant)
No response
8. Affected Components/Modules (if known)
No response
9. Impact
incorrect audio output
10. Possible Workaround (if known)
create a playback device per audio format (which is not ideal..)
11. Additional Context
SoundPlayer's format has no effect on this. and API regarding the format is very confusing by itself. I think it's not common to play distorted sound intentionally in this way.
- Lenguaje dominante
- C#
- Estrellas
- 520
- Forks
- 56
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 LSXPrime/SoundFlow
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
[BUG] WebRtcApmModifier: AEC silently does nothing - far-end (reverse) stream is never fed to APMAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
question
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
Todos los issues de LSXPrime/SoundFlow
Issues similares
-
Format request: .wbpzAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
KnifeLemon/Filee#294 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
gavin-wolfe/wolfden#104 ·
Los mantenedores suelen responder en 1 día
-
[BUG] Still libmicrohttpd dependency is not removed properly from External-Dependency-Info.txt fileAbiertotype/bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
area:framework
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
nunit/docs#1262 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
[辞書] かんそうりつ->乾燥率Abierto辞書
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día