Changeset 5536:72763f8d8270 in roaraudio


Ignore:
Timestamp:
06/12/12 15:32:44 (7 years ago)
Author:
phi
Branch:
default
Message:

make use of new function roar_stream_new_by_info()

Location:
roarclients
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarcat.c

    r5534 r5536  
    185185 } 
    186186 
    187  if ( roar_stream_new(&s, info.rate, info.channels, info.bits, info.codec) == -1 ) { 
     187 if ( roar_stream_new_by_info(&s, &info) == -1 ) { 
    188188  fprintf(stderr, "Error: can not create stream\n"); 
    189189  roar_disconnect(&con); 
  • roarclients/roarinterconnect.c

    r5534 r5536  
    529529 } 
    530530 
    531  if ( roar_stream_new(stream, info.rate, info.channels, info.bits, info.codec) == -1 ) { 
     531 if ( roar_stream_new_by_info(stream, &info) == -1 ) { 
    532532  roar_disconnect(con); 
    533533  return 21; 
  • roarclients/roarmon.c

    r5534 r5536  
    192192 } 
    193193 
    194  if ( roar_stream_new(&s, info.rate, info.channels, info.bits, info.codec) == -1 ) { 
     194 if ( roar_stream_new_by_info(&s, &info) == -1 ) { 
    195195  fprintf(stderr, "Error: can not create stream\n"); 
    196196  roar_disconnect(&con); 
  • roarclients/roarmonhttp.c

    r5534 r5536  
    340340 } 
    341341 
    342  if ( roar_stream_new(&s, info.rate, info.channels, info.bits, info.codec) == -1 ) { 
     342 if ( roar_stream_new_by_info(&s, &info) == -1 ) { 
    343343  roar_disconnect(&con); 
    344344  return 20; 
  • roarclients/roarradio.c

    r5534 r5536  
    214214 } 
    215215 
    216  if ( roar_stream_new(stream, info.rate, info.channels, info.bits, info.codec) == -1 ) { 
     216 if ( roar_stream_new_by_info(stream, &info) == -1 ) { 
    217217  roar_disconnect(con); 
    218218  return 1; 
Note: See TracChangeset for help on using the changeset viewer.