Changeset 934:0277459c7e79 in roaraudio for roard/streams.c


Ignore:
Timestamp:
12/07/08 18:20:23 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

got output streams basicly working, we should clean up some code anyway

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r930 r934  
    684684 s = ROAR_STREAM((ss = g_streams[id])); 
    685685 
     686/* 
    686687 if ( (fh = s->fh) == -1 ) 
    687688  return 0; 
     689*/ 
    688690 
    689691 if ( s->dir != ROAR_DIR_MONITOR && s->dir != ROAR_DIR_OUTPUT && s->dir != ROAR_DIR_BIDIR ) 
     
    693695  return 0; 
    694696 
    695  ROAR_DBG("streams_send_mon(id=%i): fh = %i", id, fh); 
     697 ROAR_WARN("streams_send_mon(id=%i): fh = %i", id, fh); 
    696698 
    697699 if ( s->info.channels != g_sa->channels || s->info.bits  != g_sa->bits || 
     
    850852  return -1; 
    851853 
    852  roar_vio_set_fh(&(stream->vio), ROAR_STREAM(stream)->fh); 
     854 if ( roar_vio_get_fh(&(stream->vio)) == -1 && ROAR_STREAM(stream)->fh != -1 ) 
     855  roar_vio_set_fh(&(stream->vio), ROAR_STREAM(stream)->fh); 
     856 
     857// ROAR_WARN("stream_vio_s_write(*): writing..."); 
    853858 
    854859 return roar_vio_write(&(stream->vio), buf, count); 
Note: See TracChangeset for help on using the changeset viewer.