bool test_encoders() { FLAC__bool is_ogg = false; while(1) { init_metadata_blocks_(); if(!test_stream_encoder(LAYER_STREAM, is_ogg)) return false; if(!test_stream_encoder(LAYER_SEEKABLE_STREAM, is_ogg)) return false; if(!test_stream_encoder(LAYER_FILE, is_ogg)) return false; if(!test_stream_encoder(LAYER_FILENAME, is_ogg)) return false; (void) grabbag__file_remove_file(flacfilename(is_ogg)); free_metadata_blocks_(); if(!FLAC_API_SUPPORTS_OGG_FLAC || is_ogg) break; is_ogg = true; } return true; }
FLAC__bool test_decoders() { init_metadata_blocks_(); if(!generate_file_()) return false; if(!test_stream_decoder()) return false; (void) file_utils__remove_file(oggflacfilename_); free_metadata_blocks_(); return true; }