mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-07-14 12:40:50 +00:00
Remove recordtestchanges.
This commit is contained in:
+1
-5
@@ -53,15 +53,11 @@ if __name__ == '__main__':
|
|||||||
channels=1, rate=44100, format=alsaaudio.PCM_FORMAT_S16_LE,
|
channels=1, rate=44100, format=alsaaudio.PCM_FORMAT_S16_LE,
|
||||||
periodsize=160, device=device)
|
periodsize=160, device=device)
|
||||||
|
|
||||||
print(inp.info())
|
loops = 1000000
|
||||||
# help(inp.htimestamp)
|
|
||||||
inp.enable_timestamp()
|
|
||||||
loops = 100000
|
|
||||||
while loops > 0:
|
while loops > 0:
|
||||||
loops -= 1
|
loops -= 1
|
||||||
# Read data from device
|
# Read data from device
|
||||||
l, data = inp.read()
|
l, data = inp.read()
|
||||||
if l:
|
if l:
|
||||||
print(l, inp.htimestamp(), time.time())
|
|
||||||
f.write(data)
|
f.write(data)
|
||||||
time.sleep(.001)
|
time.sleep(.001)
|
||||||
|
|||||||
Reference in New Issue
Block a user