Changeset 1138:cdca5b30dd69 in roaraudio
- Timestamp:
- 01/20/09 21:47:57 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver_oss.c
r946 r1138 44 44 45 45 roar_vio_init_calls(inst); 46 inst->sync = driver_oss_sync; 46 47 47 48 if ( fh == -1 ) { … … 166 167 167 168 if ( es != NULL ) { 168 ROAR_ERR("driver_oss_open(*): can not set requested codec, OSS retruned another codec th en 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); 169 170 } else { 170 171 ROAR_ERR("driver_oss_open(*): can not set requested codec, set codec manuelly via -oO codec=somecodec"); … … 194 195 } 195 196 197 int 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 } 196 204 197 205 #endif -
roard/include/driver_oss.h
r930 r1138 28 28 int driver_oss_open(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh); 29 29 int driver_oss_close(DRIVER_USERDATA_T inst); 30 int driver_oss_sync(struct roar_vio_calls * vio); 30 31 31 32 #endif
Note: See TracChangeset
for help on using the changeset viewer.