Logo Search packages:      
Sourcecode: jampal version File versions  Download package

String pgbennett::id3::MP3File::getPlayingTimeString (  ) [inline]

Return a formatted version of the getPlayingTime method. The string will be formated "m:ss" where 'm' is minutes and 'ss' is seconds.

Returns:
a formatted version of the getPlayingTime method

Definition at line 310 of file MP3File.java.

References getPlayingTime().

Referenced by toString().

                                         {
        String str;
        long time = getPlayingTime();
        long mins = time / 60;
        long secs = Math.round((((double) time / 60) - (long) (time / 60)) * 60);
        
        str = mins + ":";
        
        if (secs < 10) {
            str += "0" + secs;
        } else {
            str += "" + secs;
        }
        
        return str;
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index