https://bugs.kde.org/show_bug.cgi?id=486533

            Bug ID: 486533
           Summary: QML SoundEffect Plays choppy from plasmoid in panel
                    when screen is in dpms off.
    Classification: Plasma
           Product: plasmashell
           Version: 6.0.4
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: kdeb...@schells.com
                CC: k...@davidedmundson.co.uk
  Target Milestone: 1.0

I have a custom plasmoid that plays a sound when an event occurs.  It uses QML
SoundEffect's play method to play the sound.

If the screen is in dpms "off" state the sound plays choppy, like a thread is
waking up every half a second (not an exact time just an example) and playing a
snippet then sleeping.  I assume it is a power saving mode as it plays fine
when the screen is on.  This is a desktop not a laptop anyway, the system
itself is not in a power saving mode.


STEPS TO REPRODUCE
1. Create a plasmoid that plays a sound with QML SoundEffect
2. Let the screen go to power saving mode such as "xset dpms force off"
3. Call the SoundEffect play() method in the plasmoid with a sound long to hear
the effect.

OBSERVED RESULT
Sound plays choppy, like a portion is played, then stop, then next portion,
then stop, etc.

EXPECTED RESULT
Sound plays normally.  (Worked fine prior to Plasma/Qt 6.)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  openSuse Tumbleweed since Plasma 6 was rolled out a couple
months ago
(available in About System)
KDE Plasma Version: Current 6.0.4 but happened since Plasma 6 first released on
Tumbleweed
KDE Frameworks Version:  Current 6.1.0
Qt Version: Current 6.7.0

ADDITIONAL INFORMATION
This bug did not happen under Plasma/KDE/Qt 5.  

It makes no sense to have a sound effect play in snippets even when in power
saving mode.  Delay the start until you wake up and detect the even sure, but
once a sound is playing the thread needs to stay active long enough to play the
sound for a good user experience.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to