thanks for your help, the solution i used was this one:
#include
#include
using namespace boost::python;
tuple py_audio_get_recording_buffer() {
int write_ptr = 0;
std::vector buffer = audio_get_recording_buffer(write_ptr);
return make_tuple(buffer, write_ptr);
}
BOOST_PYTHON_MODUL
Craig Bosma wrote:
Hi,
I'm pretty new to Boost.Python, and am trying to wrap a simple class
similar to:
class Foo {
public:
float value() const { return value_; }
float& value() { return value_; }
private:
float value_;
};
I have no problem wrapping value() as a read-only propert
Hi,
I'm pretty new to Boost.Python, and am trying to wrap a simple class similar
to:
class Foo {
public:
float value() const { return value_; }
float& value() { return value_; }
private:
float value_;
};
I have no problem wrapping value() as a read-only property, like so:
class_("Foo
Leonard Ritter wrote:
i have a function which i wish to wrap, which returns a float buffer
and an integer:
std::vector get_recording_buffer(/* out */ size_t &write_ptr);
alternatively, the function could also just return a pointer to a
float array:
const float *get_recording_buffer(/* out *
i have a function which i wish to wrap, which returns a float buffer and an
integer:
std::vector get_recording_buffer(/* out */ size_t &write_ptr);
alternatively, the function could also just return a pointer to a float
array:
const float *get_recording_buffer(/* out */ size_t &size, /* out */ s