- Timestamp:
- Dec 20, 2018, 4:45:27 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- d327b6f, e2f1e6d
- Parents:
- 5573a6b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_flac.c
r5573a6b r9630fa8 265 265 } 266 266 267 static void aubio_sink_write_frames(aubio_sink_flac_t *s, uint_t length) 268 { 269 // send to encoder 270 if (!FLAC__stream_encoder_process_interleaved(s->encoder, 271 (const FLAC__int32*)s->buffer, length)) { 272 FLAC__StreamEncoderState state = 273 FLAC__stream_encoder_get_state(s->encoder); 274 AUBIO_WRN("sink_flac: error writing to %s (%s)\n", 275 s->path, FLAC__StreamEncoderStateString[state]); 276 } 277 } 278 267 279 void aubio_sink_flac_do(aubio_sink_flac_t *s, fvec_t *write_data, 268 280 uint_t write) … … 282 294 } 283 295 // send to encoder 284 FLAC__stream_encoder_process_interleaved(s->encoder, 285 (const FLAC__int32*)s->buffer, length); 296 aubio_sink_write_frames(s, length); 286 297 } 287 298 … … 303 314 } 304 315 } 305 // send to encoder 306 FLAC__stream_encoder_process_interleaved(s->encoder, 307 (const FLAC__int32*)s->buffer, length); 308 } 316 } 317 // send to encoder 318 aubio_sink_write_frames(s, length); 309 319 } 310 320
Note: See TracChangeset
for help on using the changeset viewer.