Re: Web Audio Api help

i forgot to send my browser/os info
Testing on Chrome v 24.0.1312.52 m on Window 7 64bit machine.

simple sample code:
audioA = new Audio();
audioB = new Audio();

audioA.playbackRate = 0.9;
audioB.playbackRate = 1.02;
    console.log(audioA.playbackRate, audioB.playbackRate); // returns
0.8999999761581421 1.0199999809265137

cheers.


On Mon, Jan 14, 2013 at 12:55 PM, My Cloud Player
<info@mycloudplayers.com>wrote:

> Hi.
>
> First of all, really good job on examples.
>
> I'm working on DJ Mixing app, where i get the sound sources from
> SoundCloud with <audio> tag.
> I cannot use audioBuffer since soundcloud server is not configured to
> allow cross domain requests, and i don't have hosting with unlimited
> bandwidth to make a proxy for streams.
>
> Most of the stuff is working as is should so far.
>
> 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 :)
>
> Is this something that is by design, and do i need to do some kind of a
> fix for this?
>
> Any help is appreciated.
>
> Thanks in advance, and keep up the good work.
> Cheers
> --
> Gorancho Cucko Sirkarovski
> My Cloud Player Developer Team
>
> [image: Inline image 1]
>



-- 
Gorancho Cucko Sirkarovski
My Cloud Player Developer Team

Received on Monday, 14 January 2013 14:40:59 UTC