interfaces/cpp/aubiocpp.cpp: use getters
authorPaul Brossier <piem@piem.org>
Thu, 22 Oct 2009 01:26:36 +0000 (03:26 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 22 Oct 2009 01:26:36 +0000 (03:26 +0200)
interfaces/cpp/aubiocpp.cpp

index 8f70611a3694f67486ee30453c256c78e838a0cd..8f66491183ef029d57873ad0a9dd3e5990a9d470 100644 (file)
@@ -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() {