C#- Detecting/converting coding format to µ-law (u-law) on a .WAV file

FrankG77
FrankG77 used Ask the Experts™
on
This question is a two parter. First of all, using C#, is there a way to check the specific encoding information on a .WAV file? I know I am able to check things like the sampling rate, number of channels, etc. But I want to be able to detect if the .WAV file uses either µ-law (u-law), PCM, or any other formats I'm not aware of.

If the .WAV file turns out to be something other than µ-law, how do I convert the .WAV file into µ-law using C#?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial