How to read XingHeaders and VBRIHeaders from MP3 files using TagLib-Sharp

后端 未结 1 1881
执笔经年
执笔经年 2021-01-22 00:16

I need to extract the information stored in the Xing and Fraunhofer VBRI headers of MP3 files using TagLib-Sharp.

I\'ve searched around the web for an example, looked at

1条回答
  •  借酒劲吻你
    2021-01-22 01:07

    Something like the following should work:

    foreach(ICodec codec in file.Properties.Codecs) {
        Mpeg.AudioHeader header = (Mpeg.AudioHeader) codec;
        if(header == null)
            return;
    
        if(header.XingHeader != Mpeg.XingHeader.Unknown) {
            /* CODE HERE */
        }
    
        if(header.VBRIHeader != VBRIHeader.Unknown) {
            /* CODE HERE */
        }
    }
    

    0 讨论(0)
提交回复
热议问题