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

Windows for business | Windows Client for IT Pros | Devices and deployment | Other
Developer technologies | C#
{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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.