Changeset 5239:eb474b0b1805 in roaraudio


Ignore:
Timestamp:
11/12/11 17:46:50 (8 years ago)
Author:
phi
Branch:
default
Message:

Removed roar_vs_latency().

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vs.h

    r5227 r5239  
    176176 * ahead of us). This is normal in case we read a stream. 
    177177 */ 
    178 roar_mus_t roar_vs_latency(roar_vs_t * vss, int backend, int * error) _LIBROAR_VS_STDATTRS _LIBROAR_ATTR_DEPRECATED; 
    179 roar_mus_t roar_vs_latency2(roar_vs_t * vss, int backend, int wait, int * error) _LIBROAR_VS_STDATTRS; 
     178roar_mus_t roar_vs_latency(roar_vs_t * vss, int backend, int wait, int * error) _LIBROAR_VS_STDATTRS; 
    180179 
    181180/* set pause flag 
  • libroar/vs.c

    r5238 r5239  
    870870#endif 
    871871 
    872 roar_mus_t roar_vs_latency(roar_vs_t * vss, int backend, int * error) { 
    873  return roar_vs_latency2(vss, backend, ROAR_VS_WAIT, error); 
    874 } 
    875  
    876 roar_mus_t roar_vs_latency2(roar_vs_t * vss, int backend, int wait, int * error) { 
     872roar_mus_t roar_vs_latency(roar_vs_t * vss, int backend, int wait, int * error) { 
    877873 ssize_t pos; 
    878874 ssize_t bps;  // byte per sample 
     
    15271523 if ( vss->async.level == ROAR_VS_ASYNCLEVEL_AUTO && !vss->async.lock && 
    15281524      vss->async.read_latency                     && !vss->async.qlen ) { 
    1529   _LIBROAR_IGNORE_RET(roar_vs_latency2(vss, 
    1530                                        vss->async.last_backend < 0 ? ROAR_VS_BACKEND_NONE : vss->async.last_backend, 
    1531                                        ROAR_VS_ASYNC, NULL)); 
     1525  _LIBROAR_IGNORE_RET(roar_vs_latency(vss, 
     1526                                      vss->async.last_backend < 0 ? ROAR_VS_BACKEND_NONE : vss->async.last_backend, 
     1527                                      ROAR_VS_ASYNC, NULL)); 
    15321528 } 
    15331529 
  • libroarpulse/simple.c

    r4961 r5239  
    157157  return -1; 
    158158 
    159  ret = roar_vs_latency((roar_vs_t*)s, ROAR_VS_BACKEND_DEFAULT, &err); 
     159 ret = roar_vs_latency((roar_vs_t*)s, ROAR_VS_BACKEND_DEFAULT, ROAR_VS_WAIT, &err); 
    160160 
    161161 if ( ret < 0 ) 
  • plugins/alsavs/pcm_roar.c

    r5197 r5239  
    292292 ROAR_DBG("roar_pcm_delay(*) = ?"); 
    293293 
    294  lat = roar_vs_latency2(self->vss, ROAR_VS_BACKEND_DEFAULT, ROAR_VS_NOWAIT, NULL); 
     294 lat = roar_vs_latency(self->vss, ROAR_VS_BACKEND_DEFAULT, ROAR_VS_NOWAIT, NULL); 
    295295 *delayp = (lat * self->info.rate) / 1000000; 
    296296 
Note: See TracChangeset for help on using the changeset viewer.