Add latencyHint when creating AudioContext (test frontend) (#124)
This commit is contained in:
@@ -111,7 +111,9 @@
|
||||
<script>
|
||||
class StreamingWavPlayer {
|
||||
constructor() {
|
||||
this.audioContext = new (window.AudioContext || window.webkitAudioContext)();
|
||||
this.audioContext = new (window.AudioContext || window.webkitAudioContext)(
|
||||
{ latencyHint: "playback" }
|
||||
);
|
||||
this.sampleRate = 0;
|
||||
this.numChannels = 0;
|
||||
this.headerParsed = false;
|
||||
|
||||
Reference in New Issue
Block a user