Changeset 1904:c2d7b0a826ef in roaraudio


Ignore:
Timestamp:
05/26/09 12:37:07 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added debug lions, commentedt seting of direction out for a moment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r1900 r1904  
    8787 struct roar_audio_info * source_info; 
    8888 
     89 ROAR_DBG("req_on_new_stream(client=%i, ...): creating stream...", client); 
    8990 if ((stream = streams_new()) == -1 ) 
    9091  return -1; 
    9192 
     93 ROAR_DBG("req_on_new_stream(client=%i, ...): getting stream...", client); 
    9294 if ( streams_get(stream, (struct roar_stream_server **)&s) == -1 ) { 
    9395  streams_delete(stream); 
     
    9597 } 
    9698 
     99 ROAR_DBG("req_on_new_stream(client=%i, ...): set client of stream...", client); 
    97100 if ( client_stream_add(client, stream) == -1 ) { 
    98101  streams_delete(stream); 
     
    100103 } 
    101104 
     105 ROAR_DBG("req_on_new_stream(client=%i, ...): loading stream from message...", client); 
    102106 if ( roar_stream_m2s(s, mes) == -1 ) { 
    103107  streams_delete(stream); 
     
    105109 } 
    106110 
     111 ROAR_DBG("req_on_new_stream(client=%i, ...): setting id and codec of stream...", client); 
    107112 ROAR_STREAM(s)->id = stream; // roar_stream_m2s() resets this 
    108113 ROAR_STREAM_SERVER(s)->codec_orgi = ROAR_STREAM(s)->info.codec; 
    109114 
     115 ROAR_DBG("req_on_new_stream(client=%i, ...): setting direction stream...", client); 
    110116 // int streams_set_dir    (int id, int dir, int defaults) 
     117/* 
    111118 if ( streams_set_dir(stream, ROAR_STREAM(s)->dir, 1) == -1 ) { 
    112119  streams_delete(stream); 
    113120  return -1; 
    114121 } 
    115  
     122*/ 
     123 
     124 ROAR_DBG("req_on_new_stream(client=%i, ...): setting up direction specific stream settings...", client); 
    116125 switch (ROAR_STREAM(s)->dir) { 
    117126  case ROAR_DIR_LIGHT_IN: 
     
    160169 } 
    161170 
     171 ROAR_DBG("req_on_new_stream(client=%i, ...): returning (OK)...", client); 
     172 
    162173 mes->cmd     = ROAR_CMD_OK; 
    163174 mes->stream  = stream; 
     
    170181 int r; 
    171182 
     183 ROAR_DBG("req_on_exec_stream(client=%i, mes={stream=%i,...},...): execing stream", client, mes->stream); 
     184 
    172185 if ( (r = client_stream_exec(client, mes->stream)) == -1 ) 
    173186  return -1; 
    174187 
     188 ROAR_DBG("req_on_exec_stream(client=%i, mes={stream=%i,...},...): returning (OK)...", client, mes->stream); 
    175189 mes->cmd     = ROAR_CMD_OK; 
    176190 mes->datalen = 0; 
Note: See TracChangeset for help on using the changeset viewer.