Changeset 2364:4d2d1aa717b1 in roaraudio


Ignore:
Timestamp:
08/15/09 02:10:09 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added argument ss of vio open driver...

Location:
roard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roard/driver.c

    r2363 r2364  
    140140int driver_openvio(struct roar_vio_calls * calls, 
    141141                 int * driver_id, char * driver /* NOTE: this is not part of struct roar_driver's def! */, 
    142                  char * device, struct roar_audio_info * info, int fh) { 
     142                 char * device, struct roar_audio_info * info, int fh, 
     143                 struct roar_stream_server * sstream) { 
    143144 int i; 
    144145 
  • roard/include/driver.h

    r2345 r2364  
    117117int driver_openvio(struct roar_vio_calls * calls, 
    118118                 int * driver_id, char * driver /* NOTE: this is not part of struct roar_driver's def! */, 
    119                  char * device, struct roar_audio_info * info, int fh); 
     119                 char * device, struct roar_audio_info * info, int fh, 
     120                 struct roar_stream_server * sstream); 
    120121 
    121122int driver_close(DRIVER_USERDATA_T   inst, int driver); 
  • roard/roard.c

    r2340 r2364  
    439439 ROAR_STREAM_SERVER(s)->codec_orgi = codec; 
    440440 
    441  if ( driver_openvio(&(ss->vio), &(ss->driver_id), drv, dev, &(s->info), -1) == -1 ) { 
     441 if ( driver_openvio(&(ss->vio), &(ss->driver_id), drv, dev, &(s->info), -1, ss) == -1 ) { 
    442442  ss->driver_id = -1; // don't close a driver not opened... 
    443443  memset(&(ss->vio), 0, sizeof(struct roar_vio_calls)); 
Note: See TracChangeset for help on using the changeset viewer.