Changes in / [135bc14:8fe522d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_flac.c
r135bc14 r8fe522d 34 34 #include <FLAC/metadata.h> 35 35 #include <FLAC/stream_encoder.h> 36 37 #include <string.h> // strerror 38 #include <errno.h> // errno 36 39 37 40 #define MAX_WRITE_SIZE 4096 … … 130 133 FLAC__bool ok = true; 131 134 FLAC__StreamEncoderInitStatus init_status; 132 FLAC__StreamMetadata_VorbisComment_Entry entry;133 135 const unsigned comp_level = 5; 134 136 const unsigned bps = 16; … … 144 146 s->fid = fopen((const char *)s->path, "wb"); 145 147 if (!s->fid) { 146 AUBIO_ STRERR("sink_flac: Failed opening %s (%s)\n", s->path, errorstr);148 AUBIO_ERR("sink_flac: failed opening %s, %s\n", s->path, strerror(errno)); 147 149 return AUBIO_FAIL; 148 150 } … … 184 186 } 185 187 188 FLAC__StreamMetadata_VorbisComment_Entry entry; 186 189 ok = FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair(&entry, 187 190 "encoder", "aubio"); … … 345 348 346 349 if (s->fid && fclose(s->fid)) { 347 AUBIO_STRERR("sink_flac: Error closing file %s (%s)\n", s->path, errorstr); 350 AUBIO_ERR("sink_flac: Error closing file %s (%s)\n", 351 s->path, strerror(errno)); 348 352 ret &= AUBIO_FAIL; 349 353 }
Note: See TracChangeset
for help on using the changeset viewer.