diff --git a/soundfile.py b/soundfile.py index cc13192..1760d73 100644 --- a/soundfile.py +++ b/soundfile.py @@ -154,7 +154,10 @@ _packaged_libname = 'libsndfile_' + _architecture()[0] + '.dll' elif _sys.platform == 'linux': from platform import machine as _machine - _packaged_libname = 'libsndfile_' + _machine() + '.so' + if _machine() in ["aarch64", "aarch64_be", "armv8b", "armv8l"]: + _packaged_libname = 'libsndfile_arm64.so' + else: + _packaged_libname = 'libsndfile_' + _machine() + '.so' else: raise OSError('no packaged library for this platform')