Skip to content

Commit 4598ddf

Browse files
committed
VolumeStream: keep allow_boost on setAudioInfo()
1 parent 2e38985 commit 4598ddf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AudioTools/CoreAudio/VolumeStream.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ class VolumeStream : public ModifyingStream, public VolumeSupport {
278278
cfg1.sample_rate = cfg.sample_rate;
279279
cfg1.bits_per_sample = cfg.bits_per_sample;
280280
// keep volume which might habe been defined befor calling begin
281-
cfg1.volume = info.volume;
281+
cfg1.volume = info.volume;
282+
cfg1.allow_boost = info.allow_boost;
282283
return cfg1;
283284
}
284285

0 commit comments

Comments
 (0)