Changeset 3384:955ae12df263 in roaraudio
- Timestamp:
- 02/11/10 12:22:40 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarpulse/simple.c
r2826 r3384 52 52 ) { 53 53 struct roarpulse_simple * s = malloc(sizeof(struct roarpulse_simple)); 54 struct roar_audio_info info; 54 55 int roar_dir; 55 int codec = -1;56 56 struct roar_meta meta; 57 57 … … 68 68 } 69 69 70 codec = roar_codec_pulse2roar(ss->format); 70 if ( roar_pa_sspec2auinfo(&info, ss) == -1 ) { 71 free(s); 72 return NULL; 73 } 71 74 72 75 if ( !server ) … … 78 81 } 79 82 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); 82 85 83 86 if ( s->data_fh == -1 ) {
Note: See TracChangeset
for help on using the changeset viewer.