print_time (DCPTime t, float fps)
{
stringstream s;
- s << t << " " << (float(t) / TIME_HZ) << "s " << (float(t) * fps / TIME_HZ) << "f";
+ s << t << " " << t.seconds() << "s " << t.frames(fps) << "f";
return s.str ();
}
film->set_name ("long_ffmpeg_audio_test");
film->set_container (Ratio::from_id ("185"));
shared_ptr<FFmpegContent> c (new FFmpegContent (film, "test/long_data/dolby_aurora.vob"));
- c->set_ratio (Ratio::from_id ("185"));
+ c->set_scale (VideoContentScale (Ratio::from_id ("185")));
film->examine_and_add_content (c);
wait_for_jobs ();
player->Audio.connect (boost::bind (&process_audio, _1, _2));
for (float i = 0; i < 10; i += 0.1) {
- check (player, i * TIME_HZ);
+ check (player, DCPTime::from_seconds (i));
}
}