From: Luigi Curzi <luigi_curzi@ya...> - 2009-06-30 15:10:18
--- Mar 30/6/09, Luigi Curzi <luigi_curzi@...> ha scritto:
> Da: Luigi Curzi <luigi_curzi@...>
> Oggetto: [Sndobj-devel] Problem with PushIn and Numpy array from h5py
> A: sndobj-devel@...
> Data: Martedì 30 giugno 2009, 13:38
> i use python-sndobj.
> i created a sndthread with a callback function that pushes
> in a slice from a numpy array in sndobj; the numpy array is
> a view from an h5py file (created using h5py library
> def __process_callback(self, channels):
> if self.stream.pos_ptr < stop:
> for i in
> self.stream.pos_ptr + 256, i) * 32768)
> self.stream.pos_ptr += 256
> i think that the problem is in h5py + sndthread, because
> also without pushin function in the callback, application
> if i use same array in a qthread or in a python thread it
> works without problems;
i forgot to explain that get_slice() is a method that retrieves a slice from an array stored in a h5 file (through h5py).
thanks in advice.
Get latest updates about Open Source Projects, Conferences and News.