Changeset 3384:955ae12df263 in roaraudio for libroarpulse


Ignore:
Timestamp:
02/11/10 12:22:40 (10 years ago)
Author:
phi
Branch:
default
Message:

use roar_pa_sspec2auinfo()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/simple.c

    r2826 r3384  
    5252    ) { 
    5353 struct roarpulse_simple * s = malloc(sizeof(struct roarpulse_simple)); 
     54 struct roar_audio_info info; 
    5455 int roar_dir; 
    55  int codec = -1; 
    5656 struct roar_meta meta; 
    5757 
     
    6868 } 
    6969 
    70  codec = roar_codec_pulse2roar(ss->format); 
     70 if ( roar_pa_sspec2auinfo(&info, ss) == -1 ) { 
     71  free(s); 
     72  return NULL; 
     73 } 
    7174 
    7275 if ( !server ) 
     
    7881 } 
    7982 
    80  s->data_fh = roar_simple_new_stream_obj(&(s->con), &(s->stream), ss->rate, ss->channels, 
    81                   16 /* does PulseAudio support something diffrent? */, codec, roar_dir); 
     83 s->data_fh = roar_simple_new_stream_obj(&(s->con), &(s->stream), info.rate, info.channels, 
     84                  info.bits, info.codec, roar_dir); 
    8285 
    8386 if ( s->data_fh == -1 ) { 
Note: See TracChangeset for help on using the changeset viewer.