mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[web-src] Fix audio context creation in Safari
This commit is contained in:
parent
38611f2a77
commit
3bfc8d49ee
@ -4,12 +4,14 @@
|
||||
*/
|
||||
export default {
|
||||
_audio: new Audio(),
|
||||
_context: new AudioContext(),
|
||||
_context: null,
|
||||
_source: null,
|
||||
_gain: null,
|
||||
|
||||
// setup audio routing
|
||||
setupAudio () {
|
||||
var AudioContext = window.AudioContext || window.webkitAudioContext
|
||||
this._context = new AudioContext()
|
||||
this._source = this._context.createMediaElementSource(this._audio)
|
||||
this._gain = this._context.createGain()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user