X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Faattachmentpoint.C;h=465e3a7be493686f219f2cd7dea968bf97cc13e7;hb=c279e21fc2394a7908bbd1ba8c79b116fe9fb14a;hp=edeba467a244465e17175a26ed4506d01cfde594;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/aattachmentpoint.C b/cinelerra-5.1/cinelerra/aattachmentpoint.C index edeba467..465e3a7b 100644 --- a/cinelerra-5.1/cinelerra/aattachmentpoint.C +++ b/cinelerra-5.1/cinelerra/aattachmentpoint.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2009 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #include "aattachmentpoint.h" @@ -85,9 +85,9 @@ int AAttachmentPoint::get_buffer_size() // return fragment_size; } -void AAttachmentPoint::render(Samples *output, +void AAttachmentPoint::render(Samples *output, int buffer_number, - int64_t start_position, + int64_t start_position, int64_t len, int64_t sample_rate) { @@ -96,7 +96,7 @@ void AAttachmentPoint::render(Samples *output, if(plugin_server->multichannel) { // Test against previous parameters for reuse of previous data - if( !is_processed || this->start_position != start_position || + if( !is_processed || this->start_position != start_position || this->len != len || this->sample_rate != sample_rate ) { // Update status this->start_position = start_position; @@ -114,8 +114,8 @@ void AAttachmentPoint::render(Samples *output, renderengine->get_edl()->session->sample_rate, renderengine->command->get_direction()); } - memcpy(output->get_data(), - buffer_vector[buffer_number]->get_data(), + memcpy(output->get_data(), + buffer_vector[buffer_number]->get_data(), sizeof(double) * len); } else @@ -124,8 +124,8 @@ void AAttachmentPoint::render(Samples *output, Samples *output_temp[1]; output_temp[0] = output; -if(0) printf("AAttachmentPoint::render %d buffer_number=%d renderengine=%p plugin_server=%p\n", -__LINE__, +if(0) printf("AAttachmentPoint::render %d buffer_number=%d renderengine=%p plugin_server=%p\n", +__LINE__, buffer_number, renderengine, plugin_servers.values[buffer_number]);