W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

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

From: Audio Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Tue, 15 May 2012 12:41:38 +0000
Message-Id: <E1SUH4M-0007NV-Gx@tibor.w3.org>
To: public-audio@w3.org
Audio-ISSUE-17 (UseDoubles): float/double inconsistency [Web Audio API]

http://www.w3.org/2011/audio/track/issues/17

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.
Received on Tuesday, 15 May 2012 12:41:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 15 May 2012 12:41:42 GMT