JBrowser Source Docs
You are reading the documentation for JBrowser 1.5.1. The newest release is 1.5.4. Go to the latest documentation

jbrowser.ui.sounds

Generated from the source code of JBrowser 1.5.1.

jbrowser/ui/sounds.py · 76 lines

Short UI sound effects (welcome screen), played with low latency through QSoundEffect.

The WAV files live in assets/sounds. Sound is optional: if Qt Multimedia or an audio device is unavailable, playback silently does nothing. appearance.sounds mutes it.

Constants#

Name Value
SOUNDS {'intro': 'intro.wav', 'click': 'click.wav'}

Sounds#

class Sounds(QObject)source
Sounds(settings: Settings, parent: QObject | None=None)

Sounds.enabled#

property enabledsource

Sounds.play#

play(name: str) -> Nonesource

Sounds.stop#

stop(name: str | None=None) -> Nonesource