Bug 307685 - Unmute does not unmute the audio
Summary: Unmute does not unmute the audio
Status: CONFIRMED
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: frontend (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: 4.6.1
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-01 19:44 UTC by Gopalakrishna Bhat
Modified: 2021-03-09 22:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.