summaryrefslogtreecommitdiff
path: root/src/lib/butler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-12-22 23:32:59 +0000
committerCarl Hetherington <cth@carlh.net>2018-12-22 23:32:59 +0000
commitb73576594b252e033539bec964d72403d3775585 (patch)
treec3d0a8e438fa19e23535c6250b551aa81fa58223 /src/lib/butler.cc
parent2f5982e8e03ddb242d1443fc4aba4ea247cdacde (diff)
Fix assumption of 48kHz DCP audio in AudioRingBuffers consistency check (#1436).
Diffstat (limited to 'src/lib/butler.cc')
-rw-r--r--src/lib/butler.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc
index 94230d094..f3e9f73f1 100644
--- a/src/lib/butler.cc
+++ b/src/lib/butler.cc
@@ -76,7 +76,7 @@ Butler::Butler (
, _fast (fast)
{
_player_video_connection = _player->Video.connect (bind (&Butler::video, this, _1, _2));
- _player_audio_connection = _player->Audio.connect (bind (&Butler::audio, this, _1, _2));
+ _player_audio_connection = _player->Audio.connect (bind (&Butler::audio, this, _1, _2, _3));
_player_text_connection = _player->Text.connect (bind (&Butler::text, this, _1, _2, _3, _4));
/* The butler must hear about things first, otherwise it might not sort out suspensions in time for
get_video() to be called in response to this signal.
@@ -296,7 +296,7 @@ Butler::video (shared_ptr<PlayerVideo> video, DCPTime time)
}
void
-Butler::audio (shared_ptr<AudioBuffers> audio, DCPTime time)
+Butler::audio (shared_ptr<AudioBuffers> audio, DCPTime time, int frame_rate)
{
{
boost::mutex::scoped_lock lm (_mutex);
@@ -307,7 +307,7 @@ Butler::audio (shared_ptr<AudioBuffers> audio, DCPTime time)
}
boost::mutex::scoped_lock lm2 (_buffers_mutex);
- _audio.put (remap (audio, _audio_channels, _audio_mapping), time);
+ _audio.put (remap (audio, _audio_channels, _audio_mapping), time, frame_rate);
}
/** Try to get `frames' frames of audio and copy it into `out'. Silence