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:
parent
ff5afb8eb1
commit
ee888891d9
@ -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,
|
||||
|
@ -75,6 +75,8 @@ cdef class DaqConfiguration:
|
||||
"""
|
||||
Initialize a device descriptor
|
||||
"""
|
||||
def __cinit__(self):
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
return str(self.to_json())
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user