Bugfix in lasp_daq.pyx. This was the reason of the initial tick in the audio. The CppSleep was done with the GIL held. Sometimes indentation is what you need in PYthon...

This commit is contained in:
Anne de Jong 2021-05-07 22:50:03 +02:00
parent ff5afb8eb1
commit ee888891d9
3 changed files with 4 additions and 4 deletions

View File

@ -263,8 +263,8 @@ cdef class Daq:
self.sd.thread = new CPPThread[void*, void (*)(void*)](audioCallbackPythonThreadFunction,
<void*> self.sd)
# Allow stream stome time to start
CPPsleep_ms(500)
# Allow stream stome time to start
CPPsleep_ms(300)
self.daq_device.start(
self.sd.inQueue,

View File

@ -75,6 +75,8 @@ cdef class DaqConfiguration:
"""
Initialize a device descriptor
"""
def __cinit__(self):
pass
def __str__(self):
return str(self.to_json())

View File

@ -43,8 +43,6 @@ if __name__ == '__main__':
choosen_key = config_keys[daqindex]
config = configs[choosen_key].input_config
config.__reduce__()
print(f'Choosen configuration: {choosen_key}')
try: