File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class SnapOutput : public AudioInfoSupport {
76
76
// / mute / unmute
77
77
void setMute (bool mute) {
78
78
is_mute = mute;
79
- vol_stream.setVolume (mute ? 0 : vol);
79
+ vol_stream.setVolume (mute ? 0 : vol * vol_factor );
80
80
audioWriteSilence ();
81
81
}
82
82
@@ -153,6 +153,7 @@ class SnapOutput : public AudioInfoSupport {
153
153
vol_cfg.copyFrom (audio_info);
154
154
vol_cfg.allow_boost = true ;
155
155
vol_stream.begin (vol_cfg);
156
+ vol_stream.setVolume (vol * vol_factor);
156
157
157
158
// open final output
158
159
out->setAudioInfo (audio_info);
@@ -246,8 +247,10 @@ class SnapOutput : public AudioInfoSupport {
246
247
} else {
247
248
// wait for the audio to become valid
248
249
ESP_LOGI (TAG, " starting after %d ms" , delay_ms);
250
+ setPlaybackFactor (p_snap_time_sync->getFactor ());
249
251
// replaced delay(delay_ms); with timed_stream
250
252
timed_stream.setStartMs (delay_ms);
253
+ timed_stream.begin ();
251
254
is_sync_started = true ;
252
255
result = true ;
253
256
}
You can’t perform that action at this time.
0 commit comments