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

Reference files in the test suite

From: Chris Lowis <Chris.Lowis@bbc.co.uk>
Date: Thu, 18 Jul 2013 07:29:12 +0000
To: "public-audio@w3.org" <public-audio@w3.org>
Message-ID: <22C090D228485E4C81293659808355B1101AB3B0@BGB01XUD1004.national.core.bbc.co.uk>
Hello,

The test of the GainNode in our test suite currently looks like this:

https://github.com/w3c/web-platform-tests/blob/master/webaudio/the-audio-api/the-gainnode-interface/gain-node-test.html

It's based on the layout test for the same node in the Webkit[1]. In it we compare a generate buffer to a known good reference, stored as a wav file.

At the moment, I've lifted the reference files from the webkit layout tests, but, from the point of view of the W3C tests, it isn't particularly transparent as to where the reference comes from. There's a few options

- generate a reference using mathematical operations in the setup of the test in an ArrayBuffer
- generate a reference using a third-party software as a wave file (perhaps using something like Sox[2]), and have a script to document how it is produced
- keep the wav files from the webkit source and use that as our reference.

I think my preference is for the first option, but I wonder if someone familiar with the layout tests in blink/webkit (Chris?) could comment? I'd guess the references in those tests are there to catch regressions, and are regenerated using the engine itself periodically?

Cheers,

Chris


[1] https://github.com/WebKit/webkit/blob/master/LayoutTests/webaudio/gain.html
[2] http://sox.sourceforge.net/


-----------------------------
http://www.bbc.co.uk
This e-mail (and any attachments) is confidential and
may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in
error, please delete it from your system.
Do not use, copy or disclose the
information in any way nor act in reliance on it and notify the sender
immediately.
Please note that the BBC monitors e-mails
sent or received.
Further communication will signify your consent to
this.
-----------------------------
Received on Thursday, 18 July 2013 07:29:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:10 UTC