Sadly there is no longer any output at all when i remove the bold code line.
Expected output:
When i remove the bold code line, which is just there for debuging, i want to get the proper expected filesize.
As of now, i assume awk fails due to the underlined floating point number?
Playtime does the same as pr_str, just for the duration of the file.
$TMP.info is filled by another prior function.
For rounding, I add 0.5 before truncating it. Decimal places less than 0.5000 will add up to less than 1, and be truncated, higher numbers will add one whole number then truncate.
In this case the suggested + 0.5 was at the wrong place.
It was $3)*BYTES + 0.5 , where it should have been ($3+0.5) .
Until now i was thinking that the + 0.5 was supposed for the +E conversion, which was already done by the int .
Out of sheer curiosity: bitrates usually are measured per second, and, by the conversion algorithm you apply, play time seems to be counted in minutes. For the correct calculation of the file size, shouldn't a factor of 60 be considered?