Bug 307685

Summary: Unmute does not unmute the audio
Product: [Frameworks and Libraries] Phonon Reporter: Gopalakrishna Bhat <gopalakbhat>
Component: frontendAssignee: Harald Sitter <sitter>
Status: CONFIRMED ---    
Severity: normal CC: martin.sandsmark, myriam, romain.perier
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: 4.6.1   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gopalakrishna Bhat 2012-10-01 19:44:37 UTC
I am trying to use phonon to play video in my program. The video plays back properly with audio the first time. When I mute and unmute the audio remains muted
AudioOutput::isMuted() returns false after unmuting.

Reproducible: Always

Steps to Reproduce:
1.As mentioned in the description
2. The snippet below get the audio playing again after unmuting

    void FullScreenPlayer::mute()
    {
        qreal volume = m_audioOutput->volume();
        m_audioOutput->setMuted(true);
        m_audioOutput->setVolume(volume);
    }
     
    void FullScreenPlayer::unmute()
    {
        m_audioOutput->setMuted(false);
    }


3.
Actual Results:  
The audio is muted after unmute

Expected Results:  
Audio is heard after unmuting
Comment 1 Martin Sandsmark 2012-10-01 19:47:09 UTC
if I'm not wrong, this is because d->volume (the volume set in the private object) of AudioOutput is set to 0 for some reason. Platform::loadVolume(name) probably returns 0.0. So when it is unmuted, the backend is told to set the volume to 0.0 again.
Comment 2 Justin Zobel 2021-03-09 22:36:57 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.