[Helix-client-dev] Resetting PCM volume for each url change

[Helix-client-dev] Resetting PCM volume for each url change

Greg Wright gwright at real.com
Mon Aug 29 10:02:36 PDT 2005


Paul Cifarelli wrote:
> Hi Guys,
> 
> I'm having a problem (linux) where on every change of URL, the PCM volume in 
> the device mixer (so, the PCM slider in kmix, for example) gets reset to 50%.  
> Some of our users have been complaining, so I was hoping there was a way to 
> disable this behavior.  A pref maybe?
> 
> The reset doesnt actually occur until the first time I call EventOccurred, but 
> after that first call, the PCM volume can be adjusted without trouble.  But, 
> the first EventOccured after another OpenURL, back to 50%.  

Try setting the following pref in your prefs file:

    OpenAudioDeviceOnPlayback=0

This should allow the core to open the audio device on engine startup. When
it does this it should be able to read the current device's audio volume and
use that instead of the default 50 for the first volume set. If you don't set
that then we don't create the audio device until the first clip is played; which
is the default.

If that doesn't help you, then are you willing to make code changes?
--greg.



> 
> For reference, the code looks like this (just like splay...):
> 
> void HelixSimplePlayer::dispatch()
> {
>    struct _HXxEvent *pNothing = 0x0;
>    struct timeval tv;
>    
>    tv.tv_sec = 0;
>    tv.tv_usec = SLEEP_TIME*1000;
> 
>    // on first call to dispatch, PCM volume still ok
>    pEngine->EventOccurred(pNothing);
>    // here back to 50%.  Subsequent calls to dispatch do not affect PCM vol
> }
> 
> I searched the forums and found that Warren Melnik posted the same question 
> but I didnt find a response.  Was hoping he figured it out on his own...
> 
> Paul
> 
> _______________________________________________
> Helix-client-dev mailing list
> Helix-client-dev at helixcommunity.org
> http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev
> 



More information about the Helix-client-dev mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.