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

Anonymous
2022-10-06T13:17:49.807+00:00

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

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

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,307 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,551 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-10-06T13:46:59.05+00:00

    248104-error-audio-jpg.jpg

    248114-audio-working.jpg

    0 comments No comments