[producer] adding more time
This commit is contained in:
parent
8378add874
commit
b7d92259a9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user