Changeset 4014:2fee6bf2dc0c in roaraudio for roarclients/roarfctest.c
- Timestamp:
- 07/01/10 20:04:36 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roarclients/roarfctest.c
r3812 r4014 102 102 #endif 103 103 104 if ( roar_stream_new(stream, rate, channels, bits, codec) == -1 ) 104 if ( roar_stream_new(stream, rate, channels, bits, codec) == -1 ) { 105 pclose(rmsout); 105 106 return 2; 107 } 106 108 107 109 if ( roardsp_filter_init(filt, stream, ROARDSP_FILTER_DCBLOCK) == -1 ) { 108 110 ROAR_ERR("main(*): roardsp_filter_init() failed: errno=%s(%i)", strerror(errno), errno); 111 pclose(rmsout); 109 112 return 1; 110 113 } … … 117 120 if ( roardsp_filter_init(filt+1, stream, ROARDSP_FILTER_HIGHP) == -1 ) { 118 121 ROAR_ERR("main(*): roardsp_filter_init() failed: errno=%s(%i)", strerror(errno), errno); 122 pclose(rmsout); 119 123 return 1; 120 124 } … … 125 129 if ( roardsp_filter_init(filt+2, stream, ROARDSP_FILTER_AMP) == -1 ) { 126 130 ROAR_ERR("main(*): roardsp_filter_init() failed: errno=%s(%i)", strerror(errno), errno); 131 pclose(rmsout); 127 132 return 1; 128 133 } … … 211 216 212 217 if ( rmsout != NULL ) 213 fclose(rmsout);218 pclose(rmsout); 214 219 215 220 return 0;
Note: See TracChangeset
for help on using the changeset viewer.