mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Disable channel checking since it breaks Safari
https://github.com/captbaritone/webamp/issues/551
This commit is contained in:
parent
de6c7690ad
commit
92c571c646
2 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue