import pygst
pygst.require('0.10')
import gst

e = gst.element_factory_make('alsasrc')
e.set_state(gst.STATE_PLAYING)
p = e.get_pad('src')
(result, buffer) = p.get_range(-1, 100)
print len(buffer) # notice how it's not 100
e.set_state(gst.STATE_NULL)
