This is a repost of a prior project.
I need a subclass of the [url removed, login to view] class that extends it with the following methods:
* isValidMP3: returns true if the file is a valid MP3, otherwise it returns false.
* getDuration: returns length of the mp3 audio file in seconds.
* getBitRate: returns bit rate of the mp3 audio file in bps (bits per second) or a list of bit rates if bite rate varies across mp3 frames.
* getSampleRate: returns sampling frequency of the mp3 audio file in Hz (Hertz).
Source code must be included. If you feel solution would be better as a package then please let me know.
VERIFICATION OF SOLUTION -- IMPORTANT:
I will verify your solution by looping your code over a substantial library of MP3s. ANY MP3 that Windows XP can report sampling rate, duration, and bit rate SO TOO MUST YOUR SOLUTION!