belangeo / pyo

Python DSP module
GNU Lesser General Public License v3.0
1.28k stars 130 forks source link

SfPlayer doesn't work #250

Open Manu197-pn opened 1 year ago

Manu197-pn commented 1 year ago

I do not succeed in using SfPlayer. When I run the example or any other program I get the following error. I am using Mac OS 12.6. Python 3.1 It is working when loading the file in ram and reading the table.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/Users/emmanuel/PycharmProjects/pythonProject2/venv/lib/python3.10/site-packages/pyo/examples/04-soundfiles/01-read-from-disk.py", line 24, in sf = SfPlayer(path, speed=[1, 0.995], loop=True, mul=0.4).out() File "/Users/emmanuel/PycharmProjects/pythonProject2/venv/lib/python3.10/site-packages/pyo/lib/players.py", line 118, in init SfPlayer_base( SystemError: <class '_pyo.SfPlayer_base'> returned a result with an exception set

belangeo commented 1 year ago

Can you print the path variable and verify if "transparent.aif" is in the given directory?