diff options
author | Lu, Han <han.lu@intel.com> | 2016-02-29 10:33:45 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-03-01 10:31:00 +0100 |
commit | 380c9fa444e88f259c6cdc51b18365b80f73c17b (patch) | |
tree | 4713614047bf9e00978b788d6e2759f659e37ec3 /seq | |
parent | 84fa5bf945e6a366890c835810c6be5222db31ac (diff) | |
download | alsa-utils-380c9fa444e88f259c6cdc51b18365b80f73c17b.tar.gz |
alsabat: truncate sample frames for faster FFT analysis
Truncate the sample frames to powers of 2, since the FFTW algorithm
runs especially fast in this case, and other sizes may be computed
by means of a slow, general-purpose algorithm.
In my test environment applying the patch, a sound clip of 33072
frames is cut off to 32768 frames before analysis, and the time
cost is reduced from 6.128s to 0.224s.
Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'seq')
0 files changed, 0 insertions, 0 deletions