PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » File_Ogg » Bug #9724

To remove round() in Vorbis stream length calculation

Details

Request #9724To remove round() in Vorbis stream length calculation
Submitted2007-01-03 12:28 UTC
Fromwww at saepia dot net
Assignedtstarling
StatusClosed
PackageFile_Ogg
PHP Version5.1.3
OSLinux
Roadmaps(Not assigned)

Comments

[2007-01-03 12:28 UTC] www at saepia dot net

Description:
------------
To remove round() in line 174 of Vorbis.php to receive more accurate results. To be precise I mean line:

$this->_streamLength =
round($streamData['stream_page'][count($streamData['stream_page']) -
1]['abs_granual.... etc.etc.

Some users (like me) sometimes need more accurate length than fixed to
seconds. Those one who needs only seconds always can do round() by
themselves.

Test script:
---------------
$o = new File_Ogg('mytestvorbisfile.ogg');
$sl = $o->listStreams();
$sn = $sl[1][0];
$s = $o->getStream($sn);
$l = $s->getLength();
echo $l;

Expected result:
----------------
To receive precise stream length.

Actual result:
--------------
Length rounded to seconds.