thanks for your help, the solution i used was this one:<br><br>#include &lt;boost/python.hpp&gt;<br>#include &lt;boost/python/suite/indexing/vector_indexing_suite.hpp&gt;<br>using namespace boost::python;<br><br>tuple py_audio_get_recording_buffer() {<br>
&nbsp;&nbsp;&nbsp; int write_ptr = 0;<br>&nbsp;&nbsp;&nbsp; std::vector&lt;float&gt; buffer = audio_get_recording_buffer(write_ptr);<br>&nbsp;&nbsp;&nbsp; return make_tuple(buffer, write_ptr);<br>}<br><br>BOOST_PYTHON_MODULE(nucleus) {<br>&nbsp;&nbsp;&nbsp; class_&lt; std::vector&lt;float&gt; &gt;(&quot;vector_float&quot;)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; .def(vector_indexing_suite&lt; std::vector&lt;float&gt; &gt;());<br><br>&nbsp;&nbsp;&nbsp; def(&quot;get_recording_buffer&quot;, py_audio_get_recording_buffer);<br>}<br><br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 4:03 PM, Stefan Seefeld <span dir="ltr">&lt;<a href="mailto:seefeld@sympatico.ca">seefeld@sympatico.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">object get_recording_buffer_wrapper()<br>
{<br>
&nbsp;size_t write_ptr;<br>
&nbsp;std::vector&lt;float&gt; buffer = get_recording_buffer(write_ptr);<br>
&nbsp;list l;<br>
&nbsp;for (std::vector::iterator i = buffer.begin(); i != buffer.end(); ++i)<br>
 &nbsp; l.append(*i);<br>
&nbsp;return make_tuple(l, write_ptr);<br>
}<br>
<br>
<br>
HTH,<br>
 &nbsp; &nbsp; &nbsp;Stefan<br><font color="#888888">
<br>
-- <br>
<br>
 &nbsp; &nbsp; ...ich hab&#39; noch einen Koffer in Berlin...<br>
<br>
_______________________________________________<br>
Cplusplus-sig mailing list<br>
<a href="mailto:Cplusplus-sig@python.org" target="_blank">Cplusplus-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">http://mail.python.org/mailman/listinfo/cplusplus-sig</a><br>
</font></blockquote></div><br>