title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Can't get Sample Size property for WMA files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dali.boris
    • Jun 2020
    • 3

    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 get_AudioProperties() function.

    Returned string looks like this:

    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

    In the case of (for example) FLAC file it looks this way:


    Type : FLAC Audio [.flac]
    Size : 1,27 MB (53% Compressed)

    Length : 15,8 seconds
    Channels : 2 (stereo)
    Sample Rate : 44,1 KHz
    Sample Size : 16 bit
    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



    As you can see Sample Size 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.
  • Spoon
    Administrator
    • Apr 2002
    • 43896

    #2
    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.
    Spoon
    www.dbpoweramp.com

    Comment

    • dali.boris
      • Jun 2020
      • 3

      #3
      Re: Can't get Sample Size property for WMA files

      Originally posted by Spoon
      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.
      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.

      Comment

      Working...

      ]]>