Searched defs:preset (Results 1 - 13 of 13) sorted by relevance

/frameworks/wilhelm/src/itf/
H A DIPresetReverb.c30 static SLresult IPresetReverb_SetPreset(SLPresetReverbItf self, SLuint16 preset) argument
35 switch (preset) {
44 thiz->mPreset = preset;
51 android::status_t status = android_prev_setPreset(thiz->mPresetReverbEffect, preset);
74 SLuint16 preset = SL_REVERBPRESET_NONE; local
76 preset = thiz->mPreset;
80 preset = thiz->mPreset;
83 android::status_t status = android_prev_getPreset(thiz->mPresetReverbEffect, &preset);
92 *pPreset = preset;
H A DIEqualizer.c349 SLuint16 preset = thiz->mPreset; local
351 *pPreset = preset;
354 uint16_t preset = 0; local
359 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_CUR_PRESET, 0, &preset);
364 if (preset < 0) {
367 *pPreset = (SLuint16) preset;
447 // FIXME query preset name rather than retrieve it from the engine.
/frameworks/base/media/java/android/media/audiofx/
H A DPresetReverb.java40 * The PresetReverb class allows an application to configure the global reverb using a reverb preset.
79 * Reverb preset representing a small room less than five meters in length
83 * Reverb preset representing a medium room with a length of ten meters or less
87 * Reverb preset representing a large-sized room suitable for live performances
91 * Reverb preset representing a medium-sized hall
95 * Reverb preset representing a large-sized hall suitable for a full orchestra
99 * Reverb preset representing a synthesis of the traditional plate reverb
140 * Enables a preset on the reverb.
144 * @param preset this must be one of the the preset constant
150 setPreset(short preset) argument
239 public short preset; field in class:PresetReverb.Settings
[all...]
H A DEqualizer.java82 * Current preset. Parameter ID for OnParameterChangeListener
90 * Request preset name. Parameter ID for OnParameterChangeListener
96 * Maximum size for preset name
169 Log.e(TAG, "preset name decode error");
318 * Gets current preset.
319 * @return the preset that is set at the moment.
332 * Sets the equalizer according to the given preset.
333 * @param preset new preset that will be taken into use. The valid range is [0,
340 public void usePreset(short preset) argument
368 getPresetName(short preset) argument
[all...]
/frameworks/av/media/libeffects/testlibs/
H A DAudioEqualizer.cpp186 const char * AudioEqualizer::getPresetName(int preset) const {
187 assert(preset < mNumPresets && preset >= PRESET_CUSTOM);
188 if (preset == PRESET_CUSTOM) {
191 return mpPresets[preset].name;
203 void AudioEqualizer::setPreset(int preset) { argument
204 ALOGV("AudioEqualizer::setPreset(preset=%d)", preset);
205 assert(preset < mNumPresets && preset >
[all...]
H A DEffectEqualizer.cpp508 ALOGV("Equalizer_getParameter() EQ_PARAM_GET_PRESET_NAME preset %d, name %s len %d",
553 int32_t preset; local
561 preset = (int32_t)(*(uint16_t *)pValue);
563 ALOGV("setParameter() EQ_PARAM_CUR_PRESET %d", preset);
564 if (preset < 0 || preset >= pEqualizer->getNumPresets()) {
568 pEqualizer->setPreset(preset);
H A DEffectReverb.c59 // Google auxiliary preset reverb UUID: 63909320-53a6-11df-bdbd-0002a5d5c51b
71 // Google insert preset reverb UUID: d93dc6a0-6342-11df-b128-0002a5d5c51b
123 int preset = 0; local
150 preset = 1;
155 ret = Reverb_Init(module, aux, preset);
233 //if bypassed or the preset forces the signal to be completely dry
461 * preset - indicates if the reverb is used in preset (1) or environmental (0) mode
470 int Reverb_Init(reverb_module_t *pRvbModule, int aux, int preset) { argument
473 ALOGV("Reverb_Init module %p, aux: %d, preset
2033 int preset; local
[all...]
/frameworks/wilhelm/tests/examples/
H A DslesTestEqFdPath.cpp199 SLuint16 nbPresets, preset, nbBands = 0; local
204 /* Start from a preset */
205 preset = nbPresets > 2 ? 2 : 0;
206 result = (*eqItf)->UsePreset(eqItf, preset);
208 preset = 1977;
209 result = (*eqItf)->GetCurrentPreset(eqItf, &preset);
211 if (SL_EQUALIZER_UNDEFINED == preset) {
212 fprintf(stderr, "Using SL_EQUALIZER_UNDEFINED preset, unexpected here!\n");
214 fprintf(stdout, "Using preset %d\n", preset);
[all...]
H A DslesTestEqOutputPath.cpp203 SLuint16 nbPresets, preset, nbBands = 0; local
208 /* Start from a preset */
209 preset = nbPresets > 2 ? 2 : 0;
210 result = (*eqOutputItf)->UsePreset(eqOutputItf, preset);
212 preset = 1977;
213 result = (*eqOutputItf)->GetCurrentPreset(eqOutputItf, &preset);
215 if (SL_EQUALIZER_UNDEFINED == preset) {
216 fprintf(stderr, "Using SL_EQUALIZER_UNDEFINED preset, unexpected here!\n");
218 fprintf(stdout, "Using preset %d\n", preset);
[all...]
H A DslesTestSendToPresetReverb.cpp73 void TestSendToPresetReverb( SLObjectItf sl, const char* path, int preset, SLmillibel directLevel, argument
141 /* Select the reverb preset */
142 fprintf(stdout, "\nUsing preset ");
143 switch(preset) {
156 result = (*reverbItf)->SetPreset(reverbItf, preset);
282 /* Disable preset reverb every TIME_S_BETWEEN_SETTING_CHANGE seconds unless always on */
293 result = (*reverbItf)->SetPreset(reverbItf, enabled ? preset : SL_REVERBPRESET_NONE);
294 fprintf(stdout, "SetPreset(%d)=%d\n", enabled ? preset : SL_REVERBPRESET_NONE, result);
362 fprintf(stdout, "Usage: \t%s [--always-on] [--fd] [--loop] path preset directLevel "
/frameworks/wilhelm/src/android/
H A Dandroid_Effect.cpp295 // initialize preset number and names, store in IEngine
366 // initialize preset
367 uint16_t preset; local
368 if (android::NO_ERROR == android_prev_getPreset(ipr->mPresetReverbEffect, &preset)) {
369 ipr->mPreset = preset;
370 // enable the effect if it has a preset loaded
371 ipr->mPresetReverbEffect->setEnabled(SL_REVERBPRESET_NONE != preset);
376 android::status_t android_prev_setPreset(android::sp<android::AudioEffect> pFx, uint16_t preset) { argument
378 PRESETREVERB_PARAM_SIZE_MAX, &preset, sizeof(uint16_t));
379 // enable the effect if the preset i
385 android_prev_getPreset(android::sp<android::AudioEffect> pFx, uint16_t* preset) argument
[all...]
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp1440 // Gets the currently set preset ID.
1442 // manually since a preset was set.
1457 // Sets the current preset by ID.
1462 // preset The preset ID.
1465 void EqualizerSetPreset(EffectContext *pContext, int preset){ argument
1467 //ALOGV("\tEqualizerSetPreset(%d)", preset);
1468 pContext->pBundledContext->CurPreset = preset;
1474 EQNB_5BandSoftPresets[i + preset * FIVEBAND_NUMBANDS];
1491 // Gets a human-readable name for a preset I
1498 EqualizerGetPresetName(int32_t preset) argument
2209 int32_t preset; local
[all...]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp101 // NXP SW auxiliary preset reverb
113 // NXP SW insert preset reverb
153 bool preset; member in struct:android::__anon464::ReverbContext
256 pContext->preset = false;
258 pContext->preset = true;
259 // force reloading preset at first call to process()
466 if (pContext->preset && pContext->nextPreset != pContext->curPreset) {
485 if (pContext->preset && pContext->curPreset == REVERB_PRESET_NONE) {
1504 // Load a the next preset
1521 const t_reverb_settings *preset local
1791 uint16_t preset = *(uint16_t *)pValue; local
[all...]

Completed in 3892 milliseconds