Skip to content

Commit

Permalink
Accurately accumate audio
Browse files Browse the repository at this point in the history
  • Loading branch information
Namaneo committed Sep 12, 2023
1 parent ff936b7 commit db76301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sources/junie.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static size_t audio_sample_batch(const int16_t *data, size_t frames)
CTX.audio.frames += frames;
CTX.audio.rate = CTX.av.timing.sample_rate * CTX.speed;

if (CTX.audio.frames >= CTX.audio.rate / 100) {
if (CTX.audio.frames >= CTX.audio.rate / (CTX.av.timing.fps * CTX.speed)) {
JunieInteropAudio(&CTX.audio);
CTX.audio.frames = 0;
}
Expand Down

0 comments on commit db76301

Please sign in to comment.