dotnet / dotnet/dotnet-api-docs

System.Media.SoundPlayer doesn't play specific encoding Lavf58.29.100

Open
#8,475 5 comments 0 reactions 0 assignees View on GitHub
area-Microsoft.Win32 Pri3
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

I have a wav audio file that has a Lavf58.29.100 that is getting an error saying that is not a wav valid audio file, but when using FFMpeg to change the encoding to 59.33.100 and using ADPCM as well, the new wav audio start to work on this code, so i was wondering if this encoding is not supported on System.Media.PlayerSound

`using (var sound = new System.Media.SoundPlayer(path))
{
sound.PlaySync();
}`

The first image is about the converted audio file, that has Lavf59.33.100 ADPCM Encoding and the second has the Lavf58.29.100.

![audio working](https://user-images.githubusercontent.com/64564134/194562920-a3c59e8d-0dc3-4008-9336-6c24d0f1bae3.jpg)
![error audio](https://user-images.githubusercontent.com/64564134/194562925-fb26b912-683e-459b-bcb3-bef2978256bc.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.