Skip to content

Commit

Permalink
Merge branch 'main' of github.com:lim1942/django_scrcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
lim1942 committed Jun 7, 2023
2 parents 90e156d + 41cb934 commit df5e037
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions general/static/general/js/pcm-player.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ PCMPlayer.prototype.destroy = function() {
};

PCMPlayer.prototype.flush = function() {
// drop out data when too much delay
if (this.startTime - this.audioCtx.currentTime>=0.15){
this.samples = new Float32Array();
}
if (!this.samples.length) return;
var bufferSource = this.audioCtx.createBufferSource(),
length = this.samples.length / this.option.channels,
Expand Down

0 comments on commit df5e037

Please sign in to comment.