From: Paul Brossier Date: Thu, 22 Oct 2009 01:26:36 +0000 (+0200) Subject: interfaces/cpp/aubiocpp.cpp: use getters X-Git-Tag: bzr2git~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00f48dcbc6997161eee325be2b8336aae2547d0c;p=aubio.git interfaces/cpp/aubiocpp.cpp: use getters --- diff --git a/interfaces/cpp/aubiocpp.cpp b/interfaces/cpp/aubiocpp.cpp index 8f70611a..8f664911 100644 --- a/interfaces/cpp/aubiocpp.cpp +++ b/interfaces/cpp/aubiocpp.cpp @@ -12,13 +12,13 @@ namespace aubio { } smpl_t* fvec::operator[]( uint_t channel ) { - return self->data[channel]; + return fvec_get_channel(self, channel); } cvec::cvec(uint_t length, uint_t channels) { self = new_cvec(length, channels); - norm = self->norm; - phas = self->phas; + norm = cvec_get_norm(self); + phas = cvec_get_phas(self); } cvec::~cvec() {