jack_default_audio_sample_t frame_right;
struct channel *mix_channel = (struct channel*)output_mix_channel;
- update_channel_buffers(mix_channel, end-start);
- for (i = 0; i < (end-start); i++)
+ for (i = start; i < end; i++)
{
mix_channel->left_buffer_ptr[i] = 0.0;
if (mix_channel->stereo)
update_channel_buffers(channel_ptr, nframes);
}
+ // Fill output buffers with the input
+ update_channel_buffers((struct channel*)mixer_ptr->main_mix_channel, nframes);
+ for (node_ptr = mixer_ptr->output_channels_list; node_ptr; node_ptr = g_slist_next(node_ptr))
+ {
+ channel_ptr = node_ptr->data;
+ update_channel_buffers(channel_ptr, nframes);
+ }
+
offset = 0;
#if defined(HAVE_JACK_MIDI)
if (in_event.time > offset)
{
+ // Perform the mixing of the part between the previous volume change
+ // (or the start of the block) up until this one.
mix(mixer_ptr, offset, in_event.time);
offset = in_event.time;
}