Changeset 1530:570f7a39d6d0 in roaraudio
- Timestamp:
- 04/12/09 00:39:36 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver_oss.c
r1527 r1530 35 35 int need_config; 36 36 struct roar_stream_server * stream; 37 int ssid; 37 38 }; 38 39 … … 221 222 } 222 223 223 if ( tmp < info->rate * 0.98 || tmp > info->rate * 1.02 ) { 224 ROAR_ERR("driver_oss_open(*): sample rate out of acceptable accuracy"); 225 return -1; 224 if ( tmp != info->rate ) { 225 ROAR_WARN("driver_oss_config_device(*): Device does not support requested sample rate: req=%iHz, sug=%iHz", 226 info->rate, tmp); 227 228 if ( tmp < info->rate * 0.98 || tmp > info->rate * 1.02 ) { 229 ROAR_ERR("driver_oss_open(*): sample rate out of acceptable accuracy"); 230 return -1; 231 } 226 232 } 227 233 … … 279 285 memcpy(&(self->info), info, sizeof(struct roar_audio_info)); 280 286 281 self->fh = fh; 287 self->ssid = -1; 288 self->fh = fh; 282 289 283 290 if ( device != NULL ) … … 384 391 *(uint_least32_t *)data = self->blocksize; 385 392 break; 393 case ROAR_VIO_CTL_GET_SSTREAMID: 394 self->ssid = *(int *)data; 395 break; 386 396 case ROAR_VIO_CTL_SET_SSTREAM: 387 397 self->stream = data;
Note: See TracChangeset
for help on using the changeset viewer.