Skip to content

Commit

Permalink
fix/ducking (#76)
Browse files Browse the repository at this point in the history
when playing sounds it was ALSO ducking volume causing issues
  • Loading branch information
JarbasAl authored Jul 5, 2024
1 parent faac2c7 commit efec3f4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ovos_audio/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,17 +530,8 @@ def handle_instant_play(self, message):
elif muted:
self.bus.emit(Message("mycroft.volume.unmute"))

if self.audio:
if self.audio.current and not duck_pulse_handled:
self.audio.current.lower_volume()

play_audio(audio_file).wait()

# return to previous state
if self.audio:
if self.audio.current and not duck_pulse_handled:
self.audio.current.restore_volume()

if ensure_volume:
if volume_changed:
self.bus.emit(Message("mycroft.volume.set", {"percent": volume,
Expand Down

0 comments on commit efec3f4

Please sign in to comment.