Home » File Formats » File_Ogg » Bug #9724
To remove round() in Vorbis stream length calculation
Details
| Request #9724 | To remove round() in Vorbis stream length calculation |
|---|---|
| Submitted | 2007-01-03 12:28 UTC |
| From | www at saepia dot net |
| Assigned | tstarling |
| Status | Closed |
| Package | File_Ogg |
| PHP Version | 5.1.3 |
| OS | Linux |
| 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.