Skip to content

Commit 6d35b6a

Browse files
committed
AudioPlayer call begin on volume_out
1 parent f9f912b commit 6d35b6a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/AudioTools/AudioPlayer.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ class AudioPlayer : public AudioInfoSupport, public VolumeSupport {
169169
out_decoding.begin();
170170
p_source->begin();
171171
meta_out.begin();
172+
volume_out.begin();
172173

173174
if (index >= 0) {
174175
p_input_stream = p_source->selectStream(index);
@@ -441,8 +442,11 @@ class AudioPlayer : public AudioInfoSupport, public VolumeSupport {
441442
}
442443
}
443444

444-
/// Provides the Print object to which we send the decoding result
445-
Print *getVolumeOutput() { return &volume_out; }
445+
// /// Provides the Print object to which we send the decoding result
446+
// Print *getVolumeOutput() { return &volume_out; }
447+
448+
/// Provides the reference to the volume stream
449+
VolumeStream &getVolumeStream() { return volume_out; }
446450

447451
/// Activates/deactivates the automatic fade in and fade out to prevent
448452
/// popping sounds: default is active

0 commit comments

Comments
 (0)