From 0d8915b3a9770d4e0804d86f0c8e66e8db190799 Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Mon, 15 Sep 2025 14:18:31 -0400 Subject: [PATCH] I will cry --- .github/workflows/python-app.yml | 3 ++- libs/audio.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 378e7aa..fce648c 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -29,7 +29,8 @@ jobs: pkg-config \ portaudio19-dev \ libsndfile1-dev \ - libsamplerate0-dev + libsamplerate0-dev \ + ccache - name: Install Audio Dependencies (macOS) if: runner.os == 'macOS' diff --git a/libs/audio.py b/libs/audio.py index f961173..76624c7 100644 --- a/libs/audio.py +++ b/libs/audio.py @@ -107,11 +107,11 @@ ffi.cdef(""" # gcc -shared -fPIC -o libaudio.so audio.c -lportaudio -lsndfile -lpthread try: 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": - lib = ffi.dlopen("libaudio.dylib") + lib = ffi.dlopen("./libaudio.dylib") else: # Assume Linux/Unix - lib = ffi.dlopen("libaudio.so") + lib = ffi.dlopen("./libaudio.so") except OSError as e: print(f"Failed to load shared library: {e}") print("Make sure to compile your C code first.")