Changeset 460:bd4644ea0cf7 in roaraudio


Ignore:
Timestamp:
08/12/08 06:37:44 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

copied some more code from esdout, now seeking works (why???, why not before?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/xmms/roar.c

    r459 r460  
    5252        roar_write, 
    5353        roar_close, 
    54         NULL, //roar_flush, 
     54        roar_flush, 
    5555        roar_pause, 
    5656        roar_free, 
     
    182182 
    183183int roar_free(void) { 
    184  return 1000000; // ??? 
     184 if ( g_inst.pause ) 
     185  return 0; 
     186 else 
     187  return 1000000; // ??? 
     188} 
     189 
     190void roar_flush(int time) { 
     191 gint64 r = time; 
     192 
     193 r *= g_inst.bps; 
     194 r /= 1000; 
     195 
     196 g_inst.written = r; 
    185197} 
    186198 
Note: See TracChangeset for help on using the changeset viewer.