ref: 00f48dcbc6997161eee325be2b8336aae2547d0c
parent: 21f0655ddfae6a1be48986d30000e906aa5adf14
author: Paul Brossier <piem@piem.org>
date: Wed Oct 21 23:26:36 EDT 2009
interfaces/cpp/aubiocpp.cpp: use getters
--- a/interfaces/cpp/aubiocpp.cpp
+++ b/interfaces/cpp/aubiocpp.cpp
@@ -12,13 +12,13 @@
}
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() {