Changeset 235:4361cf5be88e in roaraudio


Ignore:
Timestamp:
07/24/08 15:34:40 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_simple_play_file()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/simple.c

    r119 r235  
    107107} 
    108108 
     109 
     110int roar_simple_play_file(char * file, char * server, char * name) { 
     111 struct roar_connection con; 
     112 
     113 if ( roar_simple_connect(&con, server, name) == -1 ) { 
     114  return -1; 
     115 } 
     116 
     117 return roar_file_play(&con, file, 1); // con is closed by this as this stream will be an execed one. 
     118} 
     119 
    109120int roar_simple_play(int rate, int channels, int bits, int codec, char * server, char * name) { 
    110121 return roar_simple_stream(rate, channels, bits, codec, server, ROAR_DIR_PLAY, name); 
Note: See TracChangeset for help on using the changeset viewer.