Python Forum
Returning to previous volume level after Mute
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Returning to previous volume level after Mute
#3
Windspar, using pause only stops and restarts the file at the same place or time stamp of the mp3 whereas mute will allow the mp3 to continue to execute and play on without the volume and return to the mp3 at what ever place the mp3 is in at the time of unmuting the file.

I have set the variable global and it will now return to the volume set by the user when it is unmuted. The problem I am now finding is that when it returns to the prev_volume set by the user the volume will not allow it to be set higher then is held in the variable and also and then the volume is again set to another level after unmuting and the mute is pressed again and released it returned to the volume from the first user setting and not the new second setting.

I believe the variable prev_volume needs to be cleared after the first mute and unmute and then it should reassign the new assigned value once the user changes the volume again. The variable should then use the new value assigned if the mute button is pressed again?
"Often stumped... But never defeated."
Reply


Messages In This Thread
RE: Returning to previous volume level after Mute - by DT2000 - Jul-23-2019, 04:14 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020