Skip to content

๐Ÿ“Š Calculates an estimated file size of Mp3 files. ๐ŸŽถ

License

Notifications You must be signed in to change notification settings

igorskyflyer/.net-core-mp3size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

mp3size for .NET Core

Calculates an estimated file size of Mp3 files.


Port of this.

Usage

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.