Changeset 3620:724ef5e8ca0f in roaraudio for plugins/xmms


Ignore:
Timestamp:
03/02/10 21:09:53 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

do not talk to roard about stream volume if there is no stream!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/xmms/roar.c

    r3532 r3620  
    321321 float fs; 
    322322 
    323  if ( !(g_inst.state & STATE_CONNECTED) ) 
    324   return; 
     323 if ( !(g_inst.state & STATE_CONNECTED) || !(g_inst.state & STATE_PLAYING) ) { 
     324  *l = g_inst.mixer.l; 
     325  *r = g_inst.mixer.r; 
     326  return; 
     327 } 
    325328 
    326329 if ( roar_get_vol(&(g_inst.con), g_inst.stream.id, &mixer, &channels) == -1 ) { 
     
    351354 g_inst.mixer.r = r; 
    352355 
     356 if ( !(g_inst.state & STATE_PLAYING) ) 
     357  return; 
     358 
    353359 mixer.mixer[0] = l; 
    354360 mixer.mixer[1] = r; 
Note: See TracChangeset for help on using the changeset viewer.