diff --git a/py_aax_decode/native.py b/py_aax_decode/native.py index 7af4bf5..93b3ce8 100644 --- a/py_aax_decode/native.py +++ b/py_aax_decode/native.py @@ -18,7 +18,12 @@ class MetaData(Enum): # _unknown3 = 0x4075616 #STILLNOKLINGON? -def main(in_file, out_file): +def main(in_file, out_file, dll_path=None): + if dll_path is None: + dll_path = 'c:\\Program Files (x86)\\Audible\\Bin\\AAXSDKWin.dll' + + dll = ctypes.CDLL(dll_path) + handle = open_file(dll, in_file) a = (dll, handle)