I am trying to get values ββfrom a pointer to a float array, but it returns as c_void_p in python
Code C
double v; const void *data; pa_stream_peek(s, &data, &length); v = ((const float*) data)[length / sizeof(float) -1];
Python bye
import ctypes null_ptr = ctypes.c_void_p() pa_stream_peek(stream, null_ptr, ctypes.c_ulong(length))
The problem is when null_ptr is int (memory address?), But there is no way to read the array ?!
source share