title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 3 of 3

Thread: Can't get Sample Size property for WMA files

  1. #1

    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.

  2. #2
    Administrator
    Join Date
    Apr 2002
    Posts
    43,831

    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.

  3. #3

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

    Quote Originally Posted by Spoon View Post
    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •