[producer] adding more time

This commit is contained in:
wendtalexander 2024-10-09 07:58:56 +02:00
parent 8378add874
commit b7d92259a9

View File

@ -32,10 +32,8 @@ class SinProducer:
log.debug("producing Sin")
start_time = time.time()
t = 0
while time.time() - start_time < 2:
while time.time() - start_time < 20:
s = AMPLITUDE * np.sin(2 * np.pi * FREQUENCY * t)
self.buffer.append(s)
t += 1 / self.buffer.samplerate
time.sleep(1 / self.buffer.samplerate)