Changeset 5258:0cad86d3054f in roaraudio
- Timestamp:
- 11/13/11 23:35:07 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaresd/esdstream.c
r5226 r5258 52 52 53 53 static int libroaresd_stream(esd_format_t format, int rate, const char *host, const char *name, int dir) { 54 struct roar_vio_calls calls; 54 55 int channels; 55 56 int bits; 56 57 int codec = ROAR_CODEC_DEFAULT; 57 struct roar_stream s; 58 int fh; 59 int ret = -1; 58 60 59 61 if ( (format & ESD_BITS16) ) { … … 70 72 } 71 73 72 return roar_simple_stream_obj(&s, rate, channels, bits, codec, (char*)host, dir, (char*)name); 74 if ( roar_vio_simple_stream(&calls, rate, channels, bits, codec, host, dir, name) == -1 ) 75 return -1; 76 77 if ( roar_vio_ctl(&calls, ROAR_VIO_CTL_GET_FH, &fh) != -1 ) 78 if ( fh != -1 ) 79 ret = dup(fh); 80 81 roar_vio_close(&calls); 82 83 return ret; 73 84 } 74 85
Note: See TracChangeset
for help on using the changeset viewer.