flac: report latency in flacenc and flacdec
authorJulian Bouzas <julian.bouzas@collabora.com>
Fri, 22 Mar 2019 11:01:01 +0000 (12:01 +0100)
committerJulian Bouzas <julian.bouzas@collabora.com>
Mon, 25 Mar 2019 14:14:32 +0000 (15:14 +0100)
commit2ebdd70c214755d7d968a616ad890a8de0814347
tree527c68dc13ef49c09cb22fd2f656becdb83ba3d3
parentd682c74c1e889ffa760af7370b3cd0495189a1a7
flac: report latency in flacenc and flacdec

The FLAC specification states that the data is processed in blocks, regardless of the number of channels. Thus, The latency can be calculated using the blocksize and rate. For example a 1 second block sampled at 44.1KHz has a blocksize of 44100
ext/flac/gstflacdec.c
ext/flac/gstflacenc.c