- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_pysoundcard_record.py
r6d8db80 r4120fbc 11 11 s = Stream(blocksize = hop_size, channels = 1) 12 12 g = sink(sink_path, samplerate = int(s.samplerate)) 13 print s.channels14 13 15 14 s.start() … … 22 21 g(mono_vec, hop_size) 23 22 total_frames += hop_size 24 except KeyboardInterrupt , e:25 print "stopped after", "%.2f seconds" % (total_frames /s.samplerate)26 p ass23 except KeyboardInterrupt: 24 duration = total_frames / float(s.samplerate) 25 print("stopped after %.2f seconds" % duration) 27 26 s.stop() 28 27
Note: See TracChangeset
for help on using the changeset viewer.