diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-04-18 21:10:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 21:10:48 -0400 |
commit | 03d77cc3a6c4dfb15fa83c6caa60563103ca7776 (patch) | |
tree | 67911632b8614e3c170dee6db731df9a43cbc42a /ext/bg/js/anki-note-builder.js | |
parent | 7a03ce0194fafb0c2e49994dc6efd33d5fdb6a07 (diff) | |
parent | 320852f2d01d72c1039d098033081e8266d02be7 (diff) |
Merge pull request #442 from toasted-nutbread/audio-system-refactoring
Audio system refactoring
Diffstat (limited to 'ext/bg/js/anki-note-builder.js')
-rw-r--r-- | ext/bg/js/anki-note-builder.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/anki-note-builder.js b/ext/bg/js/anki-note-builder.js index 700d8237..9bab095d 100644 --- a/ext/bg/js/anki-note-builder.js +++ b/ext/bg/js/anki-note-builder.js @@ -85,14 +85,14 @@ class AnkiNoteBuilder { }); } - async injectAudio(definition, fields, sources, optionsContext) { + async injectAudio(definition, fields, sources, details) { if (!this._containsMarker(fields, 'audio')) { return; } try { const expressions = definition.expressions; const audioSourceDefinition = Array.isArray(expressions) ? expressions[0] : definition; - const {uri} = await this._audioSystem.getDefinitionAudio(audioSourceDefinition, sources, {tts: false, optionsContext}); + const {uri} = await this._audioSystem.getDefinitionAudio(audioSourceDefinition, sources, details); const filename = this._createInjectedAudioFileName(audioSourceDefinition); if (filename !== null) { definition.audio = {url: uri, filename}; |