As a followup to davmor2's suggestion, you could actually resume playback whenever the dialog is dismissed.
When the warning pops up, indicator-sound also clamps the sink input's volume back to one notch below the warning level. So even if the user hits "Cancel" instead of "OK", we're always legal when the dialog is dismissed.
As a followup to davmor2's suggestion, you could actually resume playback whenever the dialog is dismissed.
When the warning pops up, indicator-sound also clamps the sink input's volume back to one notch below the warning level. So even if the user hits "Cancel" instead of "OK", we're always legal when the dialog is dismissed.