|
@@ -104,7 +104,7 @@ def transmit(name, mumble, chunk_size):
|
|
|
data = sys.stdin.buffer.read(int(chunk_size))
|
|
|
if(get_rms(data) > 0.09):
|
|
|
mumble.sound_output.add_sound(data)
|
|
|
- buffer = 10005B
|
|
|
+ buffer = 1000
|
|
|
else:
|
|
|
# keep the audio open for one second
|
|
|
if(buffer >= 0):
|
|
@@ -155,7 +155,7 @@ def main():
|
|
|
cursor_time = time.time() - BUFFER
|
|
|
|
|
|
if args.transmit:
|
|
|
- transmit_thread = threading.Thread(target=sound_recorder, args=(1,mumble, MONO_CHUNK_SIZE))
|
|
|
+ transmit_thread = threading.Thread(target=transmit, args=(1,mumble, MONO_CHUNK_SIZE))
|
|
|
transmit_thread.start()
|
|
|
|
|
|
while mumble.is_alive():
|