Bug #1523

Loudness doesn't work and causes errors

Added by Brecht De Man almost 9 years ago. Updated almost 9 years ago.

Status:In ProgressStart date:2016-01-05
Priority:HighDue date:
Assignee:Nicholas Jillings% Done:

0%

Category:-
Target version:-

Description

Apologies if this is WIP, but in case it helps, when adding 'loudness' to either the complete test or just the audioholder, I'm fairly sure the loudness (gain) of any of the fragments isn't altered. Instead, I'm getting this error:

[Error] Deprecated attempt to set property 'gain' on a non-AudioBuffer object.
onload (core.js, line 45)

... although actually I'm getting this error all the time so this may not be related.

Attaching the XML with which this didn't work - and also the same with 'loudness' added in both the general setup and the audioholder tags.

History

#1 Updated by Nicholas Jillings almost 9 years ago

This is an issue in Safari. It is using an old specification of the Web Audio API which used to have a gain property on the buffers. That gain would affect the output gain, however it was later changed to playback normally and use an external gain. Safari does not use the latest standard and throws this error, however it seems happy to allow it to continue (from what I've seen) but can't quiet it yet.

Will confirm this.

#2 Updated by Nicholas Jillings almost 9 years ago

  • Status changed from New to In Progress

The loudness was only working if the value was set in the <page> node and always ignored the <setup> node value. Should now be fixed on the dev_main branch. The Safari error didn't come up for me this time, but either way is non-fatal.

Also available in: Atom PDF