diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-25 09:53:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-25 09:53:47 +0100 |
| commit | 871fd0585082b5e00b5b0053dadd298b9ddf60b6 (patch) | |
| tree | 526805d722703da9c14a68a93fd2b83b64bd2ef4 /src | |
| parent | 4656657c27198d67a188b11e17c42c6ac58ecfba (diff) | |
Add comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/player.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 37f172f1d..8cc1849e8 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -295,6 +295,9 @@ Player::process_audio (weak_ptr<Piece> weak_piece, shared_ptr<const AudioBuffers audio = dcp_mapped; + /* Convert frame to time. After resampling, the frame time (in the DCP rate) will be T_D where + T_D = frame * DCP_rate / original_rate. Hence the time in seconds is T_D / DCP_rate. + */ Time time = content->start() + (frame * TIME_HZ / _film->audio_frame_rate()) + (content->audio_delay() * TIME_HZ / 1000); /* We must cut off anything that comes before the start of all time */ |
