Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_pysoundcard_record.py

    r6d8db80 r4120fbc  
    1111    s = Stream(blocksize = hop_size, channels = 1)
    1212    g = sink(sink_path, samplerate = int(s.samplerate))
    13     print s.channels
    1413
    1514    s.start()
     
    2221            g(mono_vec, hop_size)
    2322            total_frames += hop_size
    24     except KeyboardInterrupt, e:
    25         print "stopped after", "%.2f seconds" % (total_frames / s.samplerate)
    26         pass
     23    except KeyboardInterrupt:
     24        duration = total_frames / float(s.samplerate)
     25        print("stopped after %.2f seconds" % duration)
    2726    s.stop()
    2827
Note: See TracChangeset for help on using the changeset viewer.