You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that audiostream is not yet ready for python3. I tried to fix a few errors but then my knowledge found its limits.
In sources directory, two files have problems with arrays (waves.pyx and puredata.pyx):
search for lines like that : buf = array('h', '\x00' * self.chunksize)
It seems that this is easy to fix by just adding a 'b': buf = array('h', b'\x00' * self.chunksize)
There are a few iterations only of them.
Then in waves.pyx there are a few uses of "next" that is no more valid in python3. I tried to change them with the new syntax but it was not sufficient or proper I am afraid.
The text was updated successfully, but these errors were encountered:
Nice work trying to port it to python3 which is very helpful by the why.
If the obj is an iterator the in python2 it will have a next() method but for py3 just use the built in next()
Py2
obj.next()
Py3
next(obj)
Hello,
It seems that audiostream is not yet ready for python3. I tried to fix a few errors but then my knowledge found its limits.
In sources directory, two files have problems with arrays (waves.pyx and puredata.pyx):
search for lines like that :
buf = array('h', '\x00' * self.chunksize)
It seems that this is easy to fix by just adding a 'b':
buf = array('h', b'\x00' * self.chunksize)
There are a few iterations only of them.
Then in waves.pyx there are a few uses of "next" that is no more valid in python3. I tried to change them with the new syntax but it was not sufficient or proper I am afraid.
The text was updated successfully, but these errors were encountered: