search for: flac__metadata_simple_iterator_init

Displaying 5 results from an estimated 5 matches for "flac__metadata_simple_iterator_init".

2006 Jul 23
1
[PATCH] Fix a compile bug with gcc 2.95 in src/plugin_common/replaygain.c
...set = *album_peak_set = false; - /* Largely stolen from vorbiscomment.c and the other replaygain.c */ FLAC__Metadata_SimpleIterator *iterator = FLAC__metadata_simple_iterator_new(); + + *track_gain_set = *album_gain_set = *track_peak_set = *album_peak_set = false; + if(0 != iterator) { if(FLAC__metadata_simple_iterator_init(iterator, filename, /*read_only=*/true, /*preserve_file_stats=*/true)) { FLAC__bool got_vorbis_comments = false; -- Eric Wong
2008 May 09
1
FLAC__metadata_get_picture()
...4 max_area_seen = 0; 289 FLAC__uint64 max_depth_seen = 0; 290 291 FLAC__ASSERT(0 != filename); 292 FLAC__ASSERT(0 != picture); 293 294 *picture = 0; 295 296 it = FLAC__metadata_simple_iterator_new(); 297 if(0 == it) 298 return false; 299 if(!FLAC__metadata_simple_iterator_init(it, filename, /*read_only=*/true, /*preserve_file_stats=*/true)) { 300 FLAC__metadata_simple_iterator_delete(it); 301 return false; 302 } 303 do { 304 if(FLAC__metadata_simple_iterator_get_block_type(it) == FLAC__METADATA_TYPE_PICTURE) { 305...
2006 Sep 06
1
FLAC__metadata_simple_iterator_set_block corrupting Flac (ogg) stream?
...adata_get_tags(fileName, &tagData); ... .. . FLAC__metadata_object_delete(tagData); For writing to the file, however, I do something along the following lines (error code stripped out to keep things shorter), this is pretty much as the flac documentation suggests: result = FLAC__metadata_simple_iterator_init(iterator, fileName, FALSE, FALSE); /** * Zip through the file for the vorbis comment section. */ while (FLAC__metadata_simple_iterator_get_block_type(iterator) != FLAC__METADATA_TYPE_VORBIS_COMMENT) { result = FLAC__metadata_simple_iterator_nex...
2011 Sep 22
0
Iterating metadata using O_NOATIME, instead of only restoring the stat values
Hi there, At the Tracker project we use FLAC__metadata_simple_iterator_init to extract metadata from FLAC files. Although this API has a boolean that restores the stat results of the file after iteration, it's still not the same as passing O_NOATIME. Ideally we can pass a int fd instead of a filename, and doesn't the metadata iterator try to write to the fd at al...
2016 Jan 10
2
About libFLAC -> win_utf8_io dependency
lvqcl wrote: > But it requires somebody to rewrite FLAC apps. At least I have a suggestion: to enclose all FLAC API functions that take char* filename argument into #ifndef FLAC__FILENAME_API_DISABLED ... #endif and maybe also all functions that take FILE* argument into #ifndef FLAC__FILEPTR_API_DISABLED ... #endif Then try to compile flac.exe/metaflac.exe/etc with