Force gstreamer appsink buffers to only hold 10ms of data
问题 I have a gstreamer pipeline which drops all of its data into an appsink: command = g_strdup_printf ("autoaudiosrc ! audio/x-raw-int, signed=true, endianness=1234, depth=%d, width=%d, channels=%d, rate=%d !" " appsink name=soundSink max_buffers=2 drop=true ", bitDepthIn, bitDepthIn, channelsIn, sampleRateIn); Which usually looks something like, autoaudiosrc ! audio/x-raw-int, signed=true, endianness=1234, depth=16, width=16, channels=1, rate=16000 ! appsink name=soundSink max_buffers=2 drop