Changeset 4213:1ecc289996e2 in roaraudio for include/libroar/vs.h


Ignore:
Timestamp:
08/20/10 02:53:09 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Tags:
roaraudio_0_3_pr1
Message:

more docs on VS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vs.h

    r4212 r4213  
    120120int     roar_vs_blocking (roar_vs_t * vss, int val, int * error); 
    121121 
    122 /* TODO: document this */ 
     122/* default backend */ 
    123123#define ROAR_VS_BACKEND_DEFAULT ROAR_VS_BACKEND_FIRST 
     124/* do not supply backend offset */ 
    124125#define ROAR_VS_BACKEND_NONE    -1 
     126/* use first found primay stream of same mixer as offset source */ 
    125127#define ROAR_VS_BACKEND_FIRST   -2 
     128/* use mean of primary streams of same mixer as offset source */ 
    126129#define ROAR_VS_BACKEND_MEAN    -3 
    127130 
     131/* get server's possition of stream 
     132 * returns server's possition of the stream or -1 on error. 
     133 * The retruned server possition is the possition in samples 
     134 * plus a offset provided by the selected backend 
     135 */ 
    128136ssize_t roar_vs_position(roar_vs_t * vss, int backend, int * error); 
    129137 
     138/* get latency between playback and local write counter 
     139 * This function may fail because the used codec uses 
     140 * non-fixed bitrate. 
     141 * if this function fails it retruns zero and sets error or 
     142 * clear error to ROAR_ERROR_NONE. 
     143 * If non-zero is retruned error is untouched. 
     144 * return value is in mu-sec (units of 10^-6s). 
     145 * Note that the retruned value may be negative (the server being 
     146 * ahead of us). This is normal in case we read a stream. 
     147 */ 
    130148roar_mus_t roar_vs_latency(roar_vs_t * vss, int backend, int * error); 
    131149 
Note: See TracChangeset for help on using the changeset viewer.