Update audio.py

This commit is contained in:
Anthony Samms
2025-09-15 21:24:19 -04:00
parent c80bd191da
commit 1b31c1c466

View File

@@ -107,7 +107,7 @@ ffi.cdef("""
# gcc -shared -fPIC -o libaudio.so audio.c -lportaudio -lsndfile -lpthread # gcc -shared -fPIC -o libaudio.so audio.c -lportaudio -lsndfile -lpthread
try: try:
if platform.system() == "Windows": if platform.system() == "Windows":
lib = ffi.dlopen("./libaudio.dll") # or "libaudio.dll" if that's the compiled name lib = ffi.dlopen("libaudio.dll") # or "libaudio.dll" if that's the compiled name
elif platform.system() == "Darwin": elif platform.system() == "Darwin":
lib = ffi.dlopen("./libaudio.dylib") lib = ffi.dlopen("./libaudio.dylib")
else: # Assume Linux/Unix else: # Assume Linux/Unix