summaryrefslogtreecommitdiffstats
path: root/media/libeffects
Commit message (Collapse)AuthorAgeFilesLines
...
| * Audio Effects: fix problems in volume control.Eric Laurent2010-08-311-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | - Fixed click when re-enabling effect during the turn off phase: make sure the effect states where effect is processed are the same where volume control is delegated to effect. - Fixed click when effect is deleted while still active: do not apply volume ramp if an effect having volume control was just removed from the effect chain. Also fixed a crash when PCM dump is enabled in effect bundle wrapper. Change-Id: Ib562f5cf75c69af75df0e862536262e2514493e4
* | am 5762dc19: am 858bb4f6: Merge "LVM release 1.07 delivery." into gingerbreadEric Laurent2010-08-30188-1599/+231
|\ \ | |/ | | | | | | | | | | Merge commit '5762dc19836e332d3ac1906e5698088a128b362d' * commit '5762dc19836e332d3ac1906e5698088a128b362d': LVM release 1.07 delivery.
| * LVM release 1.07 delivery.Eric Laurent2010-08-27188-1599/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Virtualizer now uses the correct control parameter, instead of reverberation - Volume smoothing for first frame has been added - Equalizer_setParameter now returns correct error code - Correcting Non-Linear compressor gain step noise during transitions and effect level changes - Removed SVN header blocks - Memory and MIPS values have been added to the API - Reverb uses a more efficient malloc for input PCM - Reverb DecayHFRatio now ranges up to 2000 - Logging has been removed for most volume functions Change-Id: Ib59e7e331263c3811559231b4ae90c82e34a8421
* | am 8ca5df27: am c14f9ca6: Merge "Added preset reverb." into gingerbreadEric Laurent2010-08-252-54/+199
|\ \ | |/ | | | | | | | | | | Merge commit '8ca5df27df8a2b6435486f9b5a163bf222f8fed1' * commit '8ca5df27df8a2b6435486f9b5a163bf222f8fed1': Added preset reverb.
| * Added preset reverb.Eric Laurent2010-08-242-54/+199
| | | | | | | | | | | | | | Modified lvm reverb wrapper code to expose a preset reverb interface. Also removed debug log from bundle and reverb wrapper. Change-Id: If9b95d91e25a6ff834decdfdda34b17df9b46967
* | am 33e0d834: am b6d71351: Merge "LVM release 1.05 delivery" into gingerbreadEric Laurent2010-08-2426-154/+5051
|\ \ | |/ | | | | | | | | | | Merge commit '33e0d8343174339cc9622d63c23d47c0ba0d3baa' * commit '33e0d8343174339cc9622d63c23d47c0ba0d3baa': LVM release 1.05 delivery
| * LVM release 1.05 deliveryEric Laurent2010-08-2026-154/+5051
| | | | | | | | | | | | | | | | | | | | | | | | - Click have been removed from the HP filter activation in the BassBosst Effect. - SessionId is now stored as a SessionNo - Effects now stop being called after a delay - Unix EOL fixed for .java and .xml - Updated lines limited to 100 characters. - Removed the remaining warnings from the wrapper code - Added reverb Change-Id: I03a2b3b5ee2286958f4901acc8d9b0daf9e2d7c6
* | am 5aff90a6: am 1aaba885: Merge "Audio Effects: fixed "strength supported" ↵Eric Laurent2010-08-211-2/+15
|\ \ | |/ | | | | | | | | | | | | | | parameter size." into gingerbread Merge commit '5aff90a638da53e66fba90c92d412812760fe8e5' * commit '5aff90a638da53e66fba90c92d412812760fe8e5': Audio Effects: fixed "strength supported" parameter size.
| * Audio Effects: fixed "strength supported" parameter size.Eric Laurent2010-08-181-2/+15
| | | | | | | | | | | | | | | | The "strength supported" parameter for bass boost and virtualizer effect was incorrectly using a short value whereas it should be an int. This is to comply to the definition of boolean type in OpenSL ES that is uint32. Change-Id: I74ccb61dcc70fc9d390524a1ca5bbbd8b13ab1af
* | am e67332f8: am 92e847ed: Audio effects: aligned Equalizer API argument ↵Eric Laurent2010-07-302-27/+100
|\ \ | |/ | | | | | | | | | | | | | | types on OpenSL ES SLEqualizerItf. Merge commit 'e67332f879b3f97baaac2252b53ac64686aebdbb' * commit 'e67332f879b3f97baaac2252b53ac64686aebdbb': Audio effects: aligned Equalizer API argument types on OpenSL ES SLEqualizerItf.
| * Audio effects: aligned Equalizer API argument types on OpenSL ES SLEqualizerItf.Eric Laurent2010-07-302-27/+100
| | | | | | | | | | | | | | | | | | Modified types of some arguments and returned values of the Equalizer class from int to short to match those defined by OpenSL ES SLEqualizerItf interface. Also fixed a problem with set properties in equalizer engine implementation. Change-Id: I75894bad0cb67b01c18ca5e22f9687e75ee491b8
* | am 6fa88882: am 62d83a0c: Merge "Audio effects: modified command() parameter ↵Eric Laurent2010-07-286-14/+30
|\ \ | |/ | | | | | | | | | | | | | | types." into gingerbread Merge commit '6fa8888254deb4961dc64c6ac03dc103c9cd8bcf' * commit '6fa8888254deb4961dc64c6ac03dc103c9cd8bcf': Audio effects: modified command() parameter types.
| * Audio effects: modified command() parameter types.Eric Laurent2010-07-286-14/+30
| | | | | | | | | | | | | | 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
* | resolved conflicts for merge of d306cc81 to masterEric Laurent2010-07-274-89/+71
|\ \ | |/ | | | | Change-Id: Ib593b7719a837de12605e8c75904634843298ba1
| * Audio Effects: added methods to effects java classes to store and load ↵Eric Laurent2010-07-275-85/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | current effect settings in a single call. Addional changes: - Fixed simulator build - Use effect interface UUIDs from OpenSL ES includes when available - Added cleanspec rules to remove now obsolete test effect libraries - Fixed bug in AudioEffect JNI setParameter function. Change-Id: Ic25ddb135e2cec5a68c181d727321f5ac7a1ab6b
* | am e80c30c6: am 00de7218: Merge "Fixed bug in vlm effect bunde wrapper ↵Eric Laurent2010-07-261-33/+7
|\ \ | |/ | | | | | | | | | | | | | | effect init function." into gingerbread Merge commit 'e80c30c6b557fab2f5fc7a87c51018f5a8074338' * commit 'e80c30c6b557fab2f5fc7a87c51018f5a8074338': Fixed bug in vlm effect bunde wrapper effect init function.
| * Merge "Fixed bug in vlm effect bunde wrapper effect init function." into ↵Eric Laurent2010-07-261-33/+7
| |\ | | | | | | | | | gingerbread
| | * Fixed bug in vlm effect bunde wrapper effect init function.Eric Laurent2010-07-261-33/+7
| | | | | | | | | | | | | | | | | | | | | The status in the command reply field was not initialized by Effect_command() for EFFECT_CMD_INIT causing unpredictable failures when initializing an effect. Change-Id: I7dccb094c9244fad4ed9aea3062a395db295e082
* | | am df5c3b50: am 739bf285: Merge "LVM release 1.04." into gingerbreadEric Laurent2010-07-2613-112/+97
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'df5c3b5024276af8b44d00bb28ce620ab31e2365' * commit 'df5c3b5024276af8b44d00bb28ce620ab31e2365': LVM release 1.04.
| * | LVM release 1.04.Eric Laurent2010-07-2613-112/+97
| |/ | | | | | | | | | | | | Remaining warnings in the code have been removed Core components support seamless insertion in the audio stream at playtime (Enabling / Disabling the effect). Change-Id: Icae7085305fad663faeb5a94cb673b41cec5a9f1
* | am 08f2b10c: am 021697ad: Audio effects: lvm bundle wrapper update after ↵Eric Laurent2010-07-232-729/+1062
|\ \ | |/ | | | | | | | | | | | | | | first integration tests. Merge commit '08f2b10c4b2e7fc1c666cc1d896e227289206b24' * commit '08f2b10c4b2e7fc1c666cc1d896e227289206b24': Audio effects: lvm bundle wrapper update after first integration tests.
| * Audio effects: lvm bundle wrapper update after first integration tests.Eric Laurent2010-07-232-729/+1062
| | | | | | | | Change-Id: I20cb55282833bd6e3a160e0dae1cc1fcb6b1ca30
* | resolved conflicts for merge of dd206093 to masterEric Laurent2010-07-202-2/+2
|\ \ | |/ | | | | Change-Id: I21dd2321a4839d034d49092baccbf40986f17dae
| * Audio policy manager changes for audio effectsEric Laurent2010-07-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added methods for audio effects management by audio policy manager. - control of total CPU load and memory used by effect engines - selection of output stream for global effects - added audio session id in parameter list for startOutput() and stopOutput(). this is not used in default audio policy manager implementation. Modifications of audio effect framework in AudioFlinger to allow moving and reconfiguring effect engines from one output mixer thread to another when audio tracks in the same session are moved or when requested by audio policy manager. Also fixed mutex deadlock problem with effect chains locks. Change-Id: Ida43484b06e9b890d6b9e53c13958d042720ebdb
* | Merge "Fix sim-eng build."Andy McFadden2010-07-192-4/+9
|\ \ | |/ |/|
| * Fix sim-eng build.Andy McFadden2010-07-192-4/+9
| | | | | | | | | | | | | | Different handling of libdl. Added sim handling in one place, corrected typo in sim handling in another. Change-Id: I24153ad5b8873083225390ba6a751941d231d092
* | Fixed problems in audio effect volume control.Eric Laurent2010-07-191-3/+3
|/ | | | | | | | | | Fixed the following problems in audio effect volume control in AudioFlinger: - Make sure that the volumes returned by EffectChain::setVolume_l() are correct even is no change is detected since last call - Do not use isEnabled() to validate volume control but mState >= ACTIVE instead as the volume control must be also active in STOPPING and STOPPED states. Change-Id: Id62da3164fad500ee8a5efd6cd78c77e8fdcb541
* First submission of audio effect library from NXP software.Eric Laurent2010-07-17203-65/+29801
| | | | | | | | | | | | | | | | | | | This CL contains the first open sourceable version of the audio effect library from NXP software. The effects implemented are: - Bass boost - Virtualizer (stereo widening) - Equalizer - Spectrum analyzer Source file for the effect engines are located under libeffects/lvm/lib The wrapper implementing the interface with the audio effect framework in under libeffects/lvm/wrapper The code of other effect libraries has also been reorganized fo clarity: - the effect factory is now under libeffects/factory - the test equalizer and reverb effects are under libeffect/testlibs - the visualizer is under libeffects/virtualizer Change-Id: I8d91e2181f81b89f8fc0c1e1e6bf552c5809b2eb
* Use the OpenSL ES definition of SL_IID_EQUALIZER for the EQJean-Michel Trivi2010-07-141-1/+2
| | | | | | effect UUID instead of defining it locally. Change-Id: Id6018fef20d286899cf7503fec3521dcd56db7e0
* Modifications in audio effect engine state management.Eric Laurent2010-07-134-5/+76
| | | | | | | | | | | - Separate the updating of effect engine state from the process call in EffectModule so that the state of all effects in the same effect chain is updated simultaneusly before all process functions are called. - Added a mechanism for the effect engine to continue being called for processing after receiving the disable commands untils it considers that the framework can stop calling the process function without causing a glitch or loosing some effect tail. - Updated test reverb and equalizer to support this new feature Change-Id: Icb56ae2c84c076d4dbad6cf733b1a62f823febe7
* Added JAVA classes to control bass boost, equalizer, reverberation and ↵Eric Laurent2010-07-082-567/+585
| | | | | | | | | | | | | | | | | | virtualizer Effects. Defined the following JAVA classes on top of AudioEffect class to facilitate control off built-in audio effects with APIs aligned with interfaces defined in OpenSL ES specification: - BastBoot.java - Equalizer.java - PresetReverb.java - EnvironmentalReverb.java - Virtualizer.java Split reverb API header file in two, one for preset reverb and one for environmental reverb. Some changes in test reverb to support preset reverb. Change-Id: Ie0a5ba06002e63dfd6da22cace5568c1e0b76ea1
* Added Visualizer effect.Eric Laurent2010-07-072-0/+431
| | | | | | | | | | | | | | 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
* Various fixes and improvements in audio effects implementationEric Laurent2010-06-2510-76/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Effect API: - Use different definitions for audio device, channels, formats... in AudioSystem and EffectApi: Removed media/AudioCommon.h file created for initial version of EffectApi - Indicate audio session and output ID to effect library when calling EffectCreate(). Session ID can be useful to optimize the implementation of effect chains in the same audio session. Output ID can be used for effects implemented in audio hardware. - Renamed EffectQueryNext() function to EffectQueryEffect() and changed operating mode: now an index is passed for the queried effect instead of implicitly querying the next one. - Added CPU load and memory usage indication in effects descriptor - Added flags and commands to indicate changes in audio mode (ring tone, in call...) to effect engine - Added flag to indicate hardware accelerated effect implementation. - Renamed EffectFactoryApi.h to EffectsFactoryApi.h for consistency with EffectsFactory.c/h Effect libraries: - Reflected changes in Effect API - Several fixes in reverb implementation - Added build option TEST_EFFECT_LIBRARIES in makefile to prepare integration of actual effect library. - Replaced pointer by integer identifier for library handle returned by effects factory Audio effect framework: - Added support for audio session -1 in preparation of output stage effects configuration. - Reflected changes in Effect API - Removed volume ramp up/down when effect is inserted/removed: this has to be taken care of by effect engines. - Added some overflow verification on indexes used for deferred parameter updates via shared memory - Added hardcoded CPU and memory limit check when creating a new effect instance Change-Id: I43fee5182ee201384ea3479af6d0acb95092901d
* Issue 2667801: [Audio Effect Framework] AudioFlinger, AudioMixer AudioTrack ↵Eric Laurent2010-06-034-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modifications. First drop of audio framework modifications for audio effects support. - AudioTrack/AudioRecord: Added support for auxiliary effects in AudioTrack Added support for audio sessions Fixed left right channel inversion in setVolume() - IAudioFlinger: Added interface methods for effect enumeraiton and instantiation Added support for audio sessions. - IAudioTrack: Added method to attach auxiliary effect. - AudioFlinger Created new classes to control effect engines in effect library and manage effect connections to tracks or output mix: EffectModule: wrapper object controlling the effect engine implementation in the effect library. There is one EffectModule per instance of an effect in a given audio session EffectChain: group of effects associated to one audio session. There is one EffectChain per audio session. EffectChain for session 0 is for output mix effects, other chains are attached to audio tracks with same session ID. Each chain contains a variable number of EffectModules EffectHandle: implements the IEffect interface. There is one EffectHandle object for each application controlling (or using) an effect module. THe EffectModule maintians a list of EffectHandles. Added support for effect modules and effect chains creation in PlaybackThread. modified mixer thread loop to allow track volume control by effect modules and call effect processing. -AudioMixer Each track now specifies its output buffer used by mixer for accumulation Modified mixer process functions to process tracks by groups of tracks with same buffer Modified track process functions to support accumulation to auxiliary channel Change-Id: I26d5f7c9e070a89bdd383e1a659f8b7ca150379c
* Fix the simulator build broken by commit ↵Eric Laurent2010-05-252-1/+4
| | | | | | 5fe37c6838de9fbd959ad19ba44aa3d00d1b4e6f Change-Id: Ibf6aebfec60cd7f807c3e49f0dbb5ab8e86bcdc1
* Fix issue 2667796: [Audio Effect Framework] Effect factory and libraries.Eric Laurent2010-05-2123-0/+9668
First effect factory and effect library API implementation. Also added default effect libraries for reverb and equalizer effects. These libraries are for functional test only and are not fine tuned with regard to audio quality. They will probably be replaced by other implementations before the release. Change-Id: I6868f8612146ae282c64052765c61a52ec789ec8