From fa61fc99549264810e17fcd35abffe9e8ddab5b2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 3 Jun 2015 13:17:37 +0100 Subject: Various work on audio mapping. Fix everything up so that the audio mapping view in the audio panel reflects the processor (or lack of). --- src/lib/player.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/player.cc') diff --git a/src/lib/player.cc b/src/lib/player.cc index 1a55a8472..ac5a70570 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -455,14 +455,14 @@ Player::get_audio (DCPTime time, DCPTime length, bool accurate) shared_ptr dcp_mapped (new AudioBuffers (_film->audio_channels(), all.audio->frames())); dcp_mapped->make_silent (); AudioMapping map = j->mapping (); - for (int i = 0; i < map.content_channels(); ++i) { + for (int i = 0; i < map.input_channels(); ++i) { for (int j = 0; j < _film->audio_channels(); ++j) { - if (map.get (i, static_cast (j)) > 0) { + if (map.get (i, j) > 0) { dcp_mapped->accumulate_channel ( all.audio.get(), i, j, - map.get (i, static_cast (j)) + map.get (i, j) ); } } -- cgit v1.2.3