Changeset 4580:435fb7a75ea4 in roaraudio for include/libroar/vs.h


Ignore:
Timestamp:
11/03/10 05:36:42 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added file mode to VS API (Closes: #3), still needs some tuning of the main loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/vs.h

    r4213 r4580  
    6868 */ 
    6969#define roar_vs_new_playback(s,n,r,c,e,b,error) roar_vs_new_simple((s), (n), (r), (c), (e), (b), ROAR_DIR_PLAY, (error)) 
     70 
     71 
     72/* Attach a open file. 
     73 */ 
     74 
     75int roar_vs_file(roar_vs_t * vss, struct roar_vio_calls * vio, int closefile, int * error); 
     76 
     77/* Open a file and attach it. 
     78 */ 
     79int roar_vs_file_simple(roar_vs_t * vss, char * filename, int * error); 
     80 
     81/* Connects to a server to just play a file. 
     82 */ 
     83roar_vs_t * roar_vs_new_from_file(const char * server, const char * name, char * filename, int * error); 
    7084 
    7185/* Boolean TRUE for VS functions */ 
     
    201215int     roar_vs_role          (roar_vs_t * vss, int role, int * error); 
    202216 
     217/* Run a single interation. 
     218 * This will try to read data from source, write it to the stream 
     219 * and flush the buffer in buffered mode. 
     220 * Returns -1 on error, 0 on EOF and positive true value on no error. 
     221 */ 
     222int     roar_vs_iterate       (roar_vs_t * vss, int wait, int * error); 
     223 
     224/* Iterate untill EOF or error. 
     225 * Very simple main loop. 
     226 * Returns 0 on no error and -1 on error. 
     227 */ 
     228int     roar_vs_run           (roar_vs_t * vss, int * error); 
     229 
    203230/* Get used connection object 
    204231 * This may be usefull if you want to use functions from the main API. 
Note: See TracChangeset for help on using the changeset viewer.