diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-12-29 01:11:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-12-29 01:11:22 +0000 |
| commit | 60d528017a3ac1afdc30a3a000b28dda96a2175e (patch) | |
| tree | df6cad7c5ccd7f0da0802eb7dcf258df2bf1f7f9 /src/lib/reel_writer.cc | |
| parent | f8755c678d5b4b3d6b31761ef0ec13265190ca0c (diff) | |
Previously the code did not account for referenced audio, so far
as I can see. It decided which reel to write new audio to based on
how many frames had been written to the current reel; this makes
no sense for referred reels for which the player will emit no audio.
This code looks at the audio timestamp instead.
Diffstat (limited to 'src/lib/reel_writer.cc')
| -rw-r--r-- | src/lib/reel_writer.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/reel_writer.cc b/src/lib/reel_writer.cc index 1e730259f..c560909a9 100644 --- a/src/lib/reel_writer.cc +++ b/src/lib/reel_writer.cc @@ -69,7 +69,6 @@ ReelWriter::ReelWriter ( , _period (period) , _last_written_video_frame (-1) , _last_written_eyes (EYES_RIGHT) - , _total_written_audio_frames (0) , _reel_index (reel_index) , _reel_count (reel_count) , _content_summary (content_summary) @@ -534,8 +533,6 @@ ReelWriter::write (shared_ptr<const AudioBuffers> audio) if (audio) { _sound_asset_writer->write (audio->data(), audio->frames()); } - - _total_written_audio_frames += audio->frames (); } void |
