static void test_streams_frames(const char *filename, int streams, int frames) { BOOST_MESSAGE("Count frames at " << filename); FileParser f; SPDIFFrameParser frame_parser; f.open_probe(filename, &frame_parser); BOOST_REQUIRE(f.is_open()); SPDIFParser parser; parser.open(f.get_output()); BOOST_CHECK(parser.is_open()); check_streams_chunks(&f, &parser, streams, frames); }