[mythtv-commits] Ticket #6279: Software volume control

MythTV mythtv at cvs.mythtv.org
Sun Aug 16 04:47:54 UTC 2009


#6279: Software volume control
------------------------------+---------------------------------------------
 Reporter:  foobum at gmail.com  |        Owner:  ijr    
     Type:  enhancement       |       Status:  new    
 Priority:  trivial           |    Milestone:  unknown
Component:  MythTV - General  |      Version:  unknown
 Severity:  low               |   Resolution:         
  Mlocked:  0                 |  
------------------------------+---------------------------------------------

Comment(by mythtv at golovko.org):

 When mixer control is set to master, volume is reset every time audio
 output is initialized.

 This patch needs to be applied on top of softvol-trunk-5.patch

 {{{
 diff --git a/mythtv/libs/libmyth/audiooutputbase.cpp
 b/mythtv/libs/libmyth/audiooutputbase.cpp
 index cf2fc42..c3e0fbf 100644
 --- a/mythtv/libs/libmyth/audiooutputbase.cpp
 +++ b/mythtv/libs/libmyth/audiooutputbase.cpp
 @@ -341,7 +341,11 @@ void AudioOutputBase::Reconfigure(const AudioSettings
 &orig_settings)

      // Only used for software volume
      if (set_initial_vol && internal_vol)
 -        volume = gContext->GetNumSetting("PCMMixerVolume", 80);
 +    {
 +        QString controlLabel = gContext->GetSetting("MixerControl",
 "PCM");
 +        controlLabel += "MixerVolume";
 +        volume = gContext->GetNumSetting(controlLabel, 80);
 +    }

      SyncVolume();

 }}}

 Works great otherwise (as of r21298 in trunk). Great job and thanks a lot
 for contributing.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6279#comment:18>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list