always check if using ctypes...

This commit is contained in:
Headshotnoby 2021-06-20 11:26:37 -04:00
parent 47aefc4db8
commit fc0cd31f2f

View File

@ -59,7 +59,7 @@ def getdevices():
""" """
Get BASS devices Get BASS devices
""" """
info = BASS_DEVICEINFO() info = BASS_DEVICEINFO() if use_ctypes else dll.BASS_DEVICEINFO()
ind = 0 ind = 0
devices = [] devices = []
while dll.BASS_GetDeviceInfo(ind, ctypes.c_voidp(ctypes.addressof(info)) if use_ctypes else info): while dll.BASS_GetDeviceInfo(ind, ctypes.c_voidp(ctypes.addressof(info)) if use_ctypes else info):