Changeset 945:d65997b421d1 in roaraudio for roard/driver_oss.c
- Timestamp:
- 12/07/08 23:07:14 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver_oss.c
r942 r945 54 54 roar_vio_set_fh(inst, fh); 55 55 56 57 58 #ifdef SNDCTL_DSP_CHANNELS 59 tmp = info->channels; 60 61 if ( ioctl(fh, SNDCTL_DSP_CHANNELS, &tmp) == -1 ) { 62 ROAR_ERR("driver_oss_open(*): can not set number of channels"); 63 er(); 64 } 65 66 if ( tmp != info->channels ) { 67 ROAR_ERR("driver_oss_open(*): can not set requested numer of channels, OSS suggested %i channels, to use this restart with -oO channels=%i or set codec manuelly via -oO channels=num", tmp, tmp); 68 er(); 69 } 70 #else 56 71 switch (info->channels) { 57 72 case 1: tmp = 0; break; … … 61 76 62 77 if ( ioctl(fh, SNDCTL_DSP_STEREO, &tmp) == -1 ) { 78 ROAR_ERR("driver_oss_open(*): can not set number of channels"); 63 79 er(); 64 80 } 81 #endif 65 82 66 83 switch (info->codec) {
Note: See TracChangeset
for help on using the changeset viewer.