Re: Web Audio Api help

On 14/01/2013 13:00, My Cloud Player wrote:

>     I have one question about playback rate on <audio> element.
>     I've noticed that when i set the playbackRate of audio element lets
>     say to: 0.9, the getter is returning something like 0.9000000034 for
>     example. Opposite of rounding :)

That looks like normal floating point precision error.

0.9 can't be expressed exactly in floating point, so you get that
"inaccurate" number instead.

Ray

Received on Monday, 14 January 2013 15:58:10 UTC