*/
#include <libcxml/cxml.h>
-#include <dcp/raw_convert.h>
#include "sndfile_content.h"
#include "sndfile_decoder.h"
#include "film.h"
using std::string;
using std::cout;
using boost::shared_ptr;
-using dcp::raw_convert;
SndfileContent::SndfileContent (shared_ptr<const Film> f, boost::filesystem::path p)
: Content (f, p)
{
shared_ptr<const Film> film = _film.lock ();
DCPOMATIC_ASSERT (film);
- return DCPTime (audio_length(), film->active_frame_rate_change (position ()));
+ FrameRateChange const frc = film->active_frame_rate_change (position ());
+ return DCPTime::from_frames (audio_length() / frc.speed_up, film->audio_frame_rate ());
}