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