Skip to content

Commit 2b9d3b8

Browse files
committed
AudiopPlayer: copy(size_t) on silence: correct written silence
1 parent 57efb2d commit 2b9d3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/CoreAudio/AudioPlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class AudioPlayer : public AudioInfoSupport, public VolumeSupport {
438438
} else {
439439
// e.g. A2DP should still receive data to keep the connection open
440440
if (silence_on_inactive) {
441-
writeSilence(1024);
441+
writeSilence(bytes);
442442
}
443443
}
444444
return result;

0 commit comments

Comments
 (0)