Skip to content

Commit

Permalink
Merge pull request #269 from namark/audio-input-frame-buffer-order-fix
Browse files Browse the repository at this point in the history
Fixed the order of audio frames coming out of buffer
  • Loading branch information
ctrlaltdavid authored Mar 14, 2023
2 parents 6350f2c + f6dae98 commit a75f5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/audio/AudioInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class AudioInput {
// C++ QIODevice::readAll()
let frame: Int16Array | undefined = undefined;
if (this.#_frameBuffer.length > 0) {
frame = this.#_frameBuffer.pop();
frame = this.#_frameBuffer.shift();
}
if (frame === undefined) {
this.#_errorString = "Unexpected read of empty audio input buffer!";
Expand Down

0 comments on commit a75f5aa

Please sign in to comment.