I am using Mp3FileReader.Mp3WaveFormat.BitsPerSample
to get number of bits used per sample in a mpeg layer 3 file. Now the codec of that mp3 file is returning zero when asked for BitsPerSample.
Which can happen for some codec.
Now, I need to calculate BytesPerSample for that mp3 file and I can't do it without knowing BitsPerSample.
So,
BitsPerSample
often returns 0 for compressed formats like MP3. It doesn't really make sense due to the way MP3 encodes the audio. You can examine the bits per sample of the PCM that Mp3FileReader
will decode it to with mp3FileReader.WaveFormat.BitsPerSample
. It will always be 16 though.