Changeset 1138:cdca5b30dd69 in roaraudio


Ignore:
Timestamp:
01/20/09 21:47:57 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use oss specific sync

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_oss.c

    r946 r1138  
    4444 
    4545 roar_vio_init_calls(inst); 
     46 inst->sync = driver_oss_sync; 
    4647 
    4748 if (  fh == -1 ) { 
     
    166167 
    167168  if ( es != NULL ) { 
    168    ROAR_ERR("driver_oss_open(*): can not set requested codec, OSS retruned another codec then requested, to use this restart with -oO %s or set codec manuelly via -oO codec=somecodec", es); 
     169   ROAR_ERR("driver_oss_open(*): can not set requested codec, OSS retruned another codec than requested, to use this restart with -oO %s or set codec manuelly via -oO codec=somecodec", es); 
    169170  } else { 
    170171   ROAR_ERR("driver_oss_open(*): can not set requested codec, set codec manuelly via -oO codec=somecodec"); 
     
    194195} 
    195196 
     197int driver_oss_sync(struct roar_vio_calls * vio) { 
     198#ifdef SNDCTL_DSP_SYNC 
     199 return ioctl(roar_vio_get_fh(vio), SNDCTL_DSP_SYNC, NULL); 
     200#else 
     201 return 0; 
     202#endif 
     203} 
    196204 
    197205#endif 
  • roard/include/driver_oss.h

    r930 r1138  
    2828int driver_oss_open(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh); 
    2929int driver_oss_close(DRIVER_USERDATA_T   inst); 
     30int driver_oss_sync(struct roar_vio_calls * vio); 
    3031 
    3132#endif 
Note: See TracChangeset for help on using the changeset viewer.