Disable channel checking since it breaks Safari

https://github.com/captbaritone/webamp/issues/551
This commit is contained in:
Jordan Eldredge 2018-05-03 07:10:16 -07:00
parent de6c7690ad
commit 92c571c646
2 changed files with 6 additions and 0 deletions

View file

@ -16,6 +16,9 @@ function createAnalysers(source) {
rightGain.connect(rightAnalyser);
function destroy() {
// TODO: Safari, and maybe Firefox, don't support passing the destination
// argument which means in Safari, this will disconnect `source` completely,
// which will silence the audio.
source.disconnect(splitter);
splitter.disconnect();
leftGain.disconnect();

View file

@ -205,6 +205,8 @@ export default class Media {
async play() {
await this._source.play();
if (this._channels == null) {
// Temporarily disabled https://github.com/captbaritone/webamp/issues/551
/*
detectChannels(this._staticSource)
.then(channels => {
this._setChannels(channels);
@ -212,6 +214,7 @@ export default class Media {
.catch(() => {
this._setChannels(null);
});
*/
}
}