Changeset 405:b5177c6480ee in roaraudio for libroarpulse


Ignore:
Timestamp:
08/10/08 01:10:28 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

done some more things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/simple.c

    r404 r405  
    2424  return; 
    2525 
     26 close(ss->data_fh); 
     27 
    2628 free(s); 
    2729} 
     
    3335  return -1; 
    3436 
    35  return read(ss->data_fh, data, length); 
     37 return read(ss->data_fh, (char*) data, length); 
    3638} 
    3739 
    3840/** Wait until all data already written is played by the daemon */ 
    3941int pa_simple_drain(pa_simple *s, int *error) { 
    40  struct roarpulse_simple * ss = (struct roarpulse_simple*) s; 
     42// struct roarpulse_simple * ss = (struct roarpulse_simple*) s; 
    4143 if ( !s ) 
    4244  return -1; 
     45 
     46 pa_simple_flush(s, NULL); 
    4347 
    4448 return -1; 
     
    5155  return -1; 
    5256 
    53  return read(ss->data_fh, data, legth); 
     57 return read(ss->data_fh, data, length); 
    5458} 
    5559 
Note: See TracChangeset for help on using the changeset viewer.