Can't get Sample Size property for WMA files
I'm using DMCSCRIPTINGLib for reading metadata of audio files.
For WMA files there is no "Sample Size" property in the string returned by [I]get_AudioProperties()[/I] function.
Returned string looks like this:
[FONT=Courier New]
Type : Windows Media Audio file [.wma]
Size : 138 KB (96% Compressed)
Length : 33 seconds
Channels : 2 (stereo)
Sample Rate : 22 KHz
Bit Rate : 32 kbps
Audio Quality : Low (Lossy)
Encoder : Windows Media Audio 9
Encoder Settings : 32 kbps, 22 kHz, stereo 1-pass CBR
Protected : No
______________________
dBpoweramp
[/FONT]
In the case of (for example) FLAC file it looks this way:
[FONT=Courier New]
Type : FLAC Audio [.flac]
Size : 1,27 MB (53% Compressed)
Length : 15,8 seconds
Channels : 2 (stereo)
Sample Rate : 44,1 KHz
[B]Sample Size : 16 bit[/B]
Bit Rate : 1 411 kbps (CD)
Audio Quality : Perfect (Lossless)
Encoder : FLAC Lavf56.40.101
Contains : CRC, ID Tag [Vorbis Comments]
artist : Kevin MacLeod
title : Galway
encoder : Lavf56.40.101
______________________
dBpoweramp
[/FONT]
As you can see [B]Sample Size[/B] is missing in the case of WMA file. Other libraries (like TagLib) can read this value.
Is it a bug?
Thank you for your answer and support.
Re: Can't get Sample Size property for WMA files
Lossy formats: mp3, AAC, wma (non lossless) do not have inherent bit depths, the audio is internally held which can be decoded to any bitdepth, even floating point.
Re: Can't get Sample Size property for WMA files
[QUOTE=Spoon;199201]Lossy formats: mp3, AAC, wma (non lossless) do not have inherent bit depths, the audio is internally held which can be decoded to any bitdepth, even floating point.[/QUOTE]
Thank you, after investigating other formats I confirm, that Sample Size, in the case of format mentioned, is not returned too.
Best regards and thank you for quick answer.