Changeset 764:a38fe1677502 in roaraudio


Ignore:
Timestamp:
09/07/08 03:26:20 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

accept NULL as stream object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/file.c

    r762 r764  
    157157 
    158158ssize_t roar_file_play (struct roar_connection * con, char * file, int exec) { 
    159  struct roar_stream s; 
    160  
    161  return roar_file_play_full(con, file, exec, 0, &s); 
     159 return roar_file_play_full(con, file, exec, 0, NULL); 
    162160} 
    163161 
     
    169167 char buf[BUFSIZE]; 
    170168 int rate = ROAR_RATE_DEFAULT, channels = ROAR_CHANNELS_DEFAULT, bits = ROAR_BITS_DEFAULT; 
     169 struct roar_stream localstream[1]; 
     170 
     171 if ( !s ) 
     172  s = localstream; 
    171173 
    172174 if ( !con ) 
Note: See TracChangeset for help on using the changeset viewer.