Jason Tackaberry wrote:
> Author: tack
> Date: Sun Mar 23 12:35:21 2008
> New Revision: 3216
>
> Log:
> Float times for mp3 and ogg.
>
>
> Modified:
>    trunk/metadata/src/audio/eyeD3/tag.py
>    trunk/metadata/src/audio/ogg.py
>
> Modified: trunk/metadata/src/audio/eyeD3/tag.py
> ==============================================================================
> --- trunk/metadata/src/audio/eyeD3/tag.py     (original)
> +++ trunk/metadata/src/audio/eyeD3/tag.py     Sun Mar 23 12:35:21 2008
> @@ -1534,7 +1534,7 @@
>     fileSize = int(0);
>     tag      = None;
>     # Number of seconds required to play the audio file.
> -   play_time = int(0);
> +   play_time = 0.0
>  
>     def __init__(self, fileName):
>         self.fileName = fileName;
> @@ -1633,7 +1633,7 @@
>        # Compute track play time.
>        tpf = mp3.computeTimePerFrame(self.header);
>        if self.xingHeader and self.xingHeader.vbr:
> -         self.play_time = int(tpf * self.xingHeader.numFrames);
> +         self.play_time = tpf * self.xingHeader.numFrames;
>        else:
>           length = self.getSize();
>           if self.tag and self.tag.isV2():
> @@ -1644,7 +1644,7 @@
>                 length -= 128;
>           elif self.tag and self.tag.isV1():
>              length -= 128;
> -         self.play_time = int((length / self.header.frameLength) * tpf);
> +         self.play_time = (length / self.header.frameLength) * tpf
>  
>        f.close();

Can you please create a patch for that and add it to the metadata
contrib dir because it is a patch to eyeD3 and it will get lost on the
next update.


Dischi

-- 
Trust no one - umask 777

Attachment: pgpGqZ3vsvKSv.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to