Changeset 2643:18137627e3f6 in roaraudio
- Timestamp:
- 09/12/09 02:30:00 (15 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio_ops.c
r1284 r2643 42 42 ssize_t done = 0; 43 43 44 ROAR_DBG("roar_vio_copy_data(out=%p, in=%p) = ?", out, in); 45 44 46 if ( out == NULL || in == NULL ) 45 47 return -1; … … 50 52 51 53 done += len; 54 ROAR_DBG("roar_vio_copy_data(out=%p, in=%p): len=%li, done=%li", out, in, (long int)len, (long int)done); 52 55 } 53 56 57 ROAR_DBG("roar_vio_copy_data(out=%p, in=%p): len=%li, done=%li", out, in, (long int)len, (long int)done); 58 59 ROAR_DBG("roar_vio_copy_data(out=%p, in=%p) = %li", out, in, (long int)done); 54 60 return done; 55 61 } -
libroardsp/transcode.c
r2637 r2643 137 137 return -1; 138 138 139 ROAR_DBG("roar_xcoder_proc_packet(state=%p, buf=%p, len=%lu) = ?", state, buf, (unsigned long)len); 140 139 141 if ( state->encode ) { 140 142 _CHECK_BASIC(encode); 143 ROAR_DBG("roar_xcoder_proc_packet(state=%p, buf=%p, len=%lu) = ? // _CHECK_BASIC(encode) -> OK", state, buf, (unsigned long)len); 141 144 return _FUNC(encode)(state, buf, len); 142 145 } else { 143 146 _CHECK_BASIC(decode); 147 ROAR_DBG("roar_xcoder_proc_packet(state=%p, buf=%p, len=%lu) = ? // _CHECK_BASIC(decode) -> OK", state, buf, (unsigned long)len); 144 148 return _FUNC(decode)(state, buf, len); 145 149 } … … 152 156 size_t curlen; 153 157 158 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = ?", state, buf, (unsigned long)len); 159 154 160 if ( state == NULL ) 155 161 return -1; … … 162 168 return -1; 163 169 170 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = ?", state, buf, (unsigned long)len); 171 164 172 if ( state->packet_len == 0 ) 165 173 return roar_xcoder_proc_packet(state, buf, len); 166 174 175 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu): state->packet_len=%li", state, buf, (unsigned long)len, (long int) state->packet_len); 176 167 177 if ( state->iobuffer == NULL ) { 168 178 while ( len >= state->packet_len ) { 169 if ( roar_xcoder_proc_packet(state, buf, state->packet_len) == -1 ) 170 return -1; 179 if ( roar_xcoder_proc_packet(state, buf, state->packet_len) == -1 ) { 180 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = -1 // roar_xcoder_proc_packet() error", state, buf, (unsigned long)len); 181 return -1; 182 } 171 183 172 184 buf += state->packet_len; … … 174 186 } 175 187 176 if ( !len ) 188 if ( !len ) { 189 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = 0", state, buf, (unsigned long)len); 177 190 return 0; 191 } 192 193 ROAR_DBG("roar_xcoder_proc(state=%p, buf=%p, len=%lu) = ?", state, buf, (unsigned long)len); 178 194 179 195 if ( state->encode ) { -
libroardsp/transcode_mualaw.c
r2186 r2643 46 46 size_t buflen; 47 47 48 ROAR_DBG("provide_buffer(*) = ?"); 49 48 50 if ( bufbuf != NULL ) { 49 51 if ( roar_buffer_get_len(bufbuf, &buflen) == -1 ) … … 54 56 return -1; 55 57 58 ROAR_DBG("provide_buffer(*) = 0"); 56 59 return 0; 57 60 } else { … … 67 70 return -1; 68 71 72 ROAR_DBG("provide_buffer(*) = 0"); 69 73 return 0; 70 74 } … … 73 77 _CHECK_BUF(len); 74 78 79 ROAR_DBG("roar_xcoder_alaw_encode(*) = ?"); 80 75 81 if ( roardsp_conv_pcm162alaw(iobuf, buf, outbyte) == -1 ) 76 82 return -1; 83 84 ROAR_DBG("roar_xcoder_alaw_encode(*) = ?"); 77 85 78 86 _SEND_RETURN();
Note: See TracChangeset
for help on using the changeset viewer.