W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

[web-audio-api] (UseDoubles): float/double inconsistency (#121)

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:28:27 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/121@github.com>
> Originally reported on W3C Bugzilla [ISSUE-17393](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17393) Tue, 05 Jun 2012 12:13:09 GMT
> Reported by Michael[tm] Smith
> Assigned to 

Audio-ISSUE-17 (UseDoubles): float/double inconsistency [Web Audio API]


Raised by: Marcus Geelnard
On product: Web Audio API

Throughout the spec, there seems to be a preference for using float over double (though some cases of double exists). Suggest only double except for sample format.

As an example, currentTime as a 32-bit float will degrade the precision to less than 1 ms after less than 5 hours, which is uncomfortably close to real-world usage.

Reply to this email directly or view it on GitHub:
Received on Wednesday, 11 September 2013 14:28:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:24 UTC