Port of this.
getFileSize(string time, int rate = 160): int
Gets the estimated size of the Mp3 file based on the audio time and bitrate.
-
time: string, time the length of the Mp3 file, expects either HH:MM:ss or MM:ss format
-
rate: int, the bitrate of the file, defaults to 160
returns a number, the estimated Mp3 file size or -1 in case of an error
If you like this project please consider donating to keep it alive, see this and click on the Sponsor button at the top.