summaryrefslogtreecommitdiffstats
path: root/media/libmedia/Visualizer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* audio/media: convert to using the audio HAL and new audio defsDima Zavin2011-04-271-1/+3
| | | | | Change-Id: Ibc637918637329e4f2b62f4ac7781102fbc269f5 Signed-off-by: Dima Zavin <dima@android.com>
* Increase the number of useful bits in the spectrum.Marco Nelissen2011-01-241-2/+7
| | | | Change-Id: I3efc2ac8db689285566df35cb6f594aab41141db
* Visualizer: Fix the conversion from 8-bit sample to 16-bit sample.Chia-chi Yeh2010-11-011-4/+4
| | | | Change-Id: Ie6d77b0f61a37333e05cdcdb6ef29d6f6c345a9d
* Fix error in AudioEffect command status reporting.Eric Laurent2010-09-241-2/+4
| | | | | | | | | | | | AudioEffect::command() should not interpret the status returned in pReplyData unless the command is ENABLE or DISABLE. Also fixed: - bug in Visualizer::getWAveForm() status reporting. - wrong initialization value for capture buffer in visualizer engine. Change-Id: I60fb0011f9dba96ee74661dec1e8ef441edcaf35
* Visualizer: replace the FFT implementation with a faster one.Chia-chi Yeh2010-08-191-26/+15
| | | | | | | | | This implementation uses fixed points instead of floating points. It is slightly inaccurate compared to the old one but still perfect for visualization purpose. It runs 40% faster on passion, 5 times faster on sholes, and of course 14 times faster on sapphire. Change-Id: I1e868417bcffda091becf106a7b941d02813faec
* Audio effects: modified command() parameter types.Eric Laurent2010-07-281-1/+1
| | | | | | | The type of the cmd, cmdSize and *pReplySize parameters of the effect control interface command() function have been modified from int to uint32_t. This is more consistent with their role. Change-Id: I84d289fc262d6753747910f06f485597dfee6591
* Added Visualizer effect.Eric Laurent2010-07-071-0/+330
The visualizer enables application to retrieve part of the currently playing audio for visualization purpose. It is not an audio recording interface and only returns partial and low quality audio content as a waveform or a frequency representation (FFT). Removed temporary hack made in MediaPlayer for animated wall papers based on audio visualization (snoop() method. This commit also includes a change in AudioEffect class: - the enable()/disable() methods have been replaced bya more standard setEnabled() method. - some fixes in javadoc Change-Id: Id092a1340e9e38dae68646ade7be054e3a36980e