larsimmisch / pycoreaudio

Apple CoreAudio wrappers for Python
2 stars 1 forks source link

small fix for play.py #5

Closed shakfu closed 4 months ago

shakfu commented 4 months ago

@larsimmisch Tiny change so that play.py works and plays audio for me, otherwise, I got the following error:

Traceback (most recent call last):
  File "$HOME/projects/pycoreaudio/play.py", line 65, in render_callback
    buf = buf + '\0' * sil
          ~~~~^~~~~~~~~~~~
TypeError: can't concat str to bytes

Also so small change to Makefile.

larsimmisch commented 4 months ago

There was another instance of str vs. bytes. I just fixed it silently in 21283714c04f3390136349270cc58081f6bca892