Changeset 135bc14
- Timestamp:
- Mar 31, 2019, 11:12:25 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- 08246ee
- Parents:
- 8fe522d (diff), 07c76d00 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_flac.c
r8fe522d r135bc14 34 34 #include <FLAC/metadata.h> 35 35 #include <FLAC/stream_encoder.h> 36 37 #include <string.h> // strerror38 #include <errno.h> // errno39 36 40 37 #define MAX_WRITE_SIZE 4096 … … 133 130 FLAC__bool ok = true; 134 131 FLAC__StreamEncoderInitStatus init_status; 132 FLAC__StreamMetadata_VorbisComment_Entry entry; 135 133 const unsigned comp_level = 5; 136 134 const unsigned bps = 16; … … 146 144 s->fid = fopen((const char *)s->path, "wb"); 147 145 if (!s->fid) { 148 AUBIO_ ERR("sink_flac: failed opening %s, %s\n", s->path, strerror(errno));146 AUBIO_STRERR("sink_flac: Failed opening %s (%s)\n", s->path, errorstr); 149 147 return AUBIO_FAIL; 150 148 } … … 186 184 } 187 185 188 FLAC__StreamMetadata_VorbisComment_Entry entry;189 186 ok = FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair(&entry, 190 187 "encoder", "aubio"); … … 348 345 349 346 if (s->fid && fclose(s->fid)) { 350 AUBIO_ERR("sink_flac: Error closing file %s (%s)\n", 351 s->path, strerror(errno)); 347 AUBIO_STRERR("sink_flac: Error closing file %s (%s)\n", s->path, errorstr); 352 348 ret &= AUBIO_FAIL; 353 349 }
Note: See TracChangeset
for help on using the changeset viewer.