Changeset 4819:bfe88a001985 in roaraudio for roard
- Timestamp:
- 03/28/11 12:41:15 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver_oss.c
r4815 r4819 535 535 536 536 ssize_t driver_oss_write (struct roar_vio_calls * vio, void *buf, size_t count) { 537 ROAR_DBG("driver_oss_write(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 538 537 539 if ( _get(vio,fh) == -1 ) 538 540 return -1; … … 548 550 549 551 ssize_t driver_oss_read (struct roar_vio_calls * vio, void *buf, size_t count) { 552 ROAR_DBG("driver_oss_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 553 550 554 if ( _get(vio,fh) == -1 ) 551 555 return -1; … … 553 557 if ( _get(vio,need_config) ) { 554 558 if ( driver_oss_config_device(vio->inst) == -1 ) { 559 ROAR_DBG("driver_oss_read(vio=%p, buf=%p, count=%llu) = -1", vio, buf, (long long unsigned int)count); 555 560 return -1; 556 561 } 557 562 } 558 563 564 ROAR_DBG("driver_oss_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 565 559 566 return read(_get(vio,fh), buf, count); 560 567 } -
roard/include/streams.h
r4815 r4819 154 154 155 155 int streams_is_ready (int id); 156 int streams_is_new (int id); 156 157 157 158 int streams_set_primary (int id, int prim); -
roard/streams.c
r4815 r4819 760 760 } 761 761 762 int streams_is_new (int id) { 763 _CHECK_SID(id); 764 765 return g_streams[id]->ready; 766 } 767 762 768 int streams_set_primary (int id, int prim) { 763 769 _CHECK_SID(id); -
roard/waveform.c
r4815 r4819 68 68 len = g_input_buffer_len; 69 69 if ( stream_shift_out_buffer(streams_recsource_id, g_input_buffer, &len) == -1 ) { 70 ROAR_WARN("waveform_update_mixer(void): can not read record buffer."); 70 ROAR_DBG("waveform_update_mixer(void): streams_is_new(%i) = %i", streams_recsource_id, streams_is_new(streams_recsource_id)); 71 if ( streams_is_new(streams_recsource_id) ) { 72 ROAR_DBG("waveform_update_mixer(void): can not read record buffer: stream %i is still marked new.", streams_recsource_id); 73 } else { 74 ROAR_WARN("waveform_update_mixer(void): can not read record buffer."); 75 } 71 76 memset(g_input_buffer, 0, g_input_buffer_len); 72 77 } else {
Note: See TracChangeset
for help on using the changeset viewer.