Changeset 4819:bfe88a001985 in roaraudio


Ignore:
Timestamp:
03/28/11 12:41:15 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

avoid warning when record stream is not yet fully up

Location:
roard
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_oss.c

    r4815 r4819  
    535535 
    536536ssize_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 
    537539 if ( _get(vio,fh) == -1 ) 
    538540  return -1; 
     
    548550 
    549551ssize_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 
    550554 if ( _get(vio,fh) == -1 ) 
    551555  return -1; 
     
    553557 if ( _get(vio,need_config) ) { 
    554558  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); 
    555560   return -1; 
    556561  } 
    557562 } 
    558563 
     564 ROAR_DBG("driver_oss_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 
     565 
    559566 return read(_get(vio,fh), buf, count); 
    560567} 
  • roard/include/streams.h

    r4815 r4819  
    154154 
    155155int streams_is_ready     (int id); 
     156int streams_is_new       (int id); 
    156157 
    157158int streams_set_primary  (int id, int prim); 
  • roard/streams.c

    r4815 r4819  
    760760} 
    761761 
     762int streams_is_new       (int id) { 
     763 _CHECK_SID(id); 
     764 
     765 return g_streams[id]->ready; 
     766} 
     767 
    762768int streams_set_primary (int id, int prim) { 
    763769 _CHECK_SID(id); 
  • roard/waveform.c

    r4815 r4819  
    6868  len = g_input_buffer_len; 
    6969  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   } 
    7176   memset(g_input_buffer, 0, g_input_buffer_len); 
    7277  } else { 
Note: See TracChangeset for help on using the changeset viewer.