mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +01:00
Add number of streams/block size description tags
This commit is contained in:
parent
4263533ba9
commit
2f21b83074
@ -188,6 +188,26 @@ void input_vgmstream::get_info(file_info & p_info,abort_callback & p_abort ) {
|
||||
p_info.info_set("metadata source", temp);
|
||||
}
|
||||
|
||||
pos = description.find_first("number of streams: ");
|
||||
if (pos != pfc::infinite_size)
|
||||
{
|
||||
pos += strlen("number of streams: ");
|
||||
eos = description.find_first('\n', pos);
|
||||
if (eos == pfc::infinite_size) eos = description.length();
|
||||
temp.set_string(description + pos, eos - pos);
|
||||
p_info.info_set("number of streams", temp);
|
||||
}
|
||||
|
||||
pos = description.find_first("block size: ");
|
||||
if (pos != pfc::infinite_size)
|
||||
{
|
||||
pos += strlen("block size: ");
|
||||
eos = description.find_first('\n', pos);
|
||||
if (eos == pfc::infinite_size) eos = description.length();
|
||||
temp.set_string(description + pos, eos - pos);
|
||||
p_info.info_set("block size", temp);
|
||||
}
|
||||
|
||||
p_info.set_length(((double)length_in_ms)/1000);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user