Skip to content

Commit

Permalink
适配scrcpy2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lim1942 committed Aug 10, 2023
1 parent 14b8b06 commit d401059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion general/static/general/js/pcm-player.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ PCMPlayer.prototype.init = function(option) {
}
this.option = Object.assign({}, defaults, option);
this.audioCtx = new (window.AudioContext || window.webkitAudioContext)();
this.audioCtx.resume();
this.audioCtx.onstatechange = () => console.log("AudioContext:", this.audioCtx.state);
this.audioCtx.resume()
this.startTime = this.audioCtx.currentTime;
this.maxValue = this.getMaxValue();
this.typedArray = this.getTypedArray();
Expand Down

0 comments on commit d401059

Please sign in to comment.