Is the bitrate property fixed at index 28?

I am trying to read the Bit Rate property of audio files. I know how to get value, but the way I do it, I do not think that it is the most effective.

Shell shell = new Shell32.Shell();
Folder objFolder = shell.NameSpace(path);
for (int i = 0; i < short.MaxValue; i++)
{
    string property = objFolder.GetDetailsOf(null, i);
    if (String.IsNullOrEmpty(property))
        break;
    if (property.Equals("Bit rate"))
    {
        index = i;
        break;
    }
}
FolderItem item = objFolder.ParseName(fileName);
string bitRateValue = objFolder.GetDetailsOf(item, index);

I take care that for the cycle I need to get the “bit of speed” index, so for all my tests I returned index 28, so I started to wonder if it is always possible to determine the bit frequency at index 28? If not, is there a better way to find out which index the data rate is at?

+3
source share
1 answer

, , . , - .

, Shell, bitrate 28. Shell, . Shell - , , .

, , .wav.

+1

Source: https://habr.com/ru/post/1525348/


All Articles