mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
I will cry
This commit is contained in:
3
.github/workflows/python-app.yml
vendored
3
.github/workflows/python-app.yml
vendored
@@ -29,7 +29,8 @@ jobs:
|
|||||||
pkg-config \
|
pkg-config \
|
||||||
portaudio19-dev \
|
portaudio19-dev \
|
||||||
libsndfile1-dev \
|
libsndfile1-dev \
|
||||||
libsamplerate0-dev
|
libsamplerate0-dev \
|
||||||
|
ccache
|
||||||
|
|
||||||
- name: Install Audio Dependencies (macOS)
|
- name: Install Audio Dependencies (macOS)
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
|
|||||||
@@ -107,11 +107,11 @@ 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
|
||||||
lib = ffi.dlopen("libaudio.so")
|
lib = ffi.dlopen("./libaudio.so")
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
print(f"Failed to load shared library: {e}")
|
print(f"Failed to load shared library: {e}")
|
||||||
print("Make sure to compile your C code first.")
|
print("Make sure to compile your C code first.")
|
||||||
|
|||||||
Reference in New Issue
Block a user