I'm trying to get the values from a pointer to a float array, but it returns as c_void_p in python
The C code
double v;
const void *data;
pa_stream_peek(s, &data, &length);
v = ((const float*) data)[length / sizeof(float) -1];
Python so far
import ctypes
null_ptr = ctypes.c_void_p()
pa_stream_peek(stream, null_ptr, ctypes.c_ulong(length))
The issue being the null_ptr has an int value (memory address?) but there is no way to read the array?!