diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-19 00:14:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-19 00:14:38 +0100 |
| commit | e5da5518951e91f7bfb80718c9cf546e3ece059c (patch) | |
| tree | 18f92aa4b492b60f339773b33a138311fdc3d41b /src/lib/analyse_audio_job.cc | |
| parent | 23cf9a87b290c32bfef24c6674734bed608d13c6 (diff) | |
Basics of making loop do something.
Diffstat (limited to 'src/lib/analyse_audio_job.cc')
| -rw-r--r-- | src/lib/analyse_audio_job.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/analyse_audio_job.cc b/src/lib/analyse_audio_job.cc index 2848c1ed7..9a9116690 100644 --- a/src/lib/analyse_audio_job.cc +++ b/src/lib/analyse_audio_job.cc @@ -68,14 +68,14 @@ AnalyseAudioJob::run () player->Audio.connect (bind (&AnalyseAudioJob::audio, this, _1, _2)); - _samples_per_point = max (int64_t (1), _film->time_to_audio_frames (_film->length()) / _num_points); + _samples_per_point = max (int64_t (1), _film->time_to_audio_frames (_film->length_without_loop()) / _num_points); _current.resize (_film->dcp_audio_channels ()); _analysis.reset (new AudioAnalysis (_film->dcp_audio_channels ())); _done = 0; while (!player->pass ()) { - set_progress (double (_film->audio_frames_to_time (_done)) / _film->length ()); + set_progress (double (_film->audio_frames_to_time (_done)) / _film->length_without_loop ()); } _analysis->write (content->audio_analysis_path ()); |
