Searched defs:preset (Results 1 - 14 of 14) 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 *pPreset = (SLuint16) preset;
443 // FIXME query preset name rather than retrieve it from the engine.
/frameworks/base/media/java/android/media/audiofx/
H A DPresetReverb.java32 * The PresetReverb class allows an application to configure the global reverb using a reverb preset.
71 * Reverb preset representing a small room less than five meters in length
75 * Reverb preset representing a medium room with a length of ten meters or less
79 * Reverb preset representing a large-sized room suitable for live performances
83 * Reverb preset representing a medium-sized hall
87 * Reverb preset representing a large-sized hall suitable for a full orchestra
91 * Reverb preset representing a synthesis of the traditional plate reverb
132 * Enables a preset on the reverb.
136 * @param preset this must be one of the the preset constant
142 setPreset(short preset) argument
231 public short preset; field in class:PresetReverb.Settings
[all...]
H A DEqualizer.java75 * Current preset. Parameter ID for OnParameterChangeListener
83 * Request preset name. Parameter ID for OnParameterChangeListener
89 * Maximum size for preset name
162 Log.e(TAG, "preset name decode error");
311 * Gets current preset.
312 * @return the preset that is set at the moment.
325 * Sets the equalizer according to the given preset.
326 * @param preset new preset that will be taken into use. The valid range is [0,
333 public void usePreset(short preset) argument
361 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.cpp490 ALOGV("Equalizer_getParameter() EQ_PARAM_GET_PRESET_NAME preset %d, name %s len %d",
535 int32_t preset; local
543 preset = (int32_t)(*(uint16_t *)pValue);
545 ALOGV("setParameter() EQ_PARAM_CUR_PRESET %d", preset);
546 if (preset < 0 || preset >= pEqualizer->getNumPresets()) {
550 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
106 int preset = 0; local
133 preset = 1;
138 ret = Reverb_Init(module, aux, preset);
216 //if bypassed or the preset forces the signal to be completely dry
444 * preset - indicates if the reverb is used in preset (1) or environmental (0) mode
453 int Reverb_Init(reverb_module_t *pRvbModule, int aux, int preset) { argument
456 ALOGV("Reverb_Init module %p, aux: %d, preset
2016 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.cpp72 void TestSendToPresetReverb( SLObjectItf sl, const char* path, int preset, SLmillibel directLevel, argument
140 /* Select the reverb preset */
141 fprintf(stdout, "\nUsing preset ");
142 switch(preset) {
155 result = (*reverbItf)->SetPreset(reverbItf, preset);
281 /* Disable preset reverb every TIME_S_BETWEEN_SETTING_CHANGE seconds unless always on */
292 result = (*reverbItf)->SetPreset(reverbItf, enabled ? preset : SL_REVERBPRESET_NONE);
293 fprintf(stdout, "SetPreset(%d)=%d\n", enabled ? preset : SL_REVERBPRESET_NONE, result);
361 fprintf(stdout, "Usage: \t%s [--always-on] [--fd] [--loop] path preset directLevel "
/frameworks/base/media/java/android/media/
H A DAudioAttributes.java207 * To be used with capture preset MediaRecorder.AudioSource.HOTWORD or
280 * Return the capture preset.
577 * Sets the capture preset.
580 * @param preset one of {@link MediaRecorder.AudioSource#DEFAULT},
588 public Builder setCapturePreset(int preset) { argument
589 switch (preset) {
596 mSource = preset;
599 Log.e(TAG, "Invalid capture preset " + preset + " for AudioAttributes");
608 * @param preset
612 setInternalCapturePreset(int preset) argument
[all...]
/frameworks/wilhelm/src/android/
H A Dandroid_Effect.cpp306 // initialize preset number and names, store in IEngine
377 // initialize preset
378 uint16_t preset; local
379 if (android::NO_ERROR == android_prev_getPreset(ipr->mPresetReverbEffect, &preset)) {
380 ipr->mPreset = preset;
381 // enable the effect if it has a preset loaded
382 ipr->mPresetReverbEffect->setEnabled(SL_REVERBPRESET_NONE != preset);
387 android::status_t android_prev_setPreset(android::sp<android::AudioEffect> pFx, uint16_t preset) { argument
389 PRESETREVERB_PARAM_SIZE_MAX, &preset, sizeof(uint16_t));
390 // enable the effect if the preset i
396 android_prev_getPreset(android::sp<android::AudioEffect> pFx, uint16_t* preset) argument
[all...]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp103 // NXP SW auxiliary preset reverb
115 // NXP SW insert preset reverb
155 bool preset; member in struct:android::__anon243::ReverbContext
234 pContext->preset = false;
236 pContext->preset = true;
237 // force reloading preset at first call to process()
444 if (pContext->preset && pContext->nextPreset != pContext->curPreset) {
463 if (pContext->preset && pContext->curPreset == REVERB_PRESET_NONE) {
1483 // Load a the next preset
1500 const t_reverb_settings *preset local
1770 uint16_t preset = *(uint16_t *)pValue; local
[all...]
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp1648 // Gets the currently set preset ID.
1650 // manually since a preset was set.
1665 // Sets the current preset by ID.
1670 // preset The preset ID.
1673 void EqualizerSetPreset(EffectContext *pContext, int preset){ argument
1675 //ALOGV("\tEqualizerSetPreset(%d)", preset);
1676 pContext->pBundledContext->CurPreset = preset;
1682 EQNB_5BandSoftPresets[i + preset * FIVEBAND_NUMBANDS];
1700 // Gets a human-readable name for a preset I
1707 EqualizerGetPresetName(int32_t preset) argument
2459 int32_t preset; local
[all...]

Completed in 253 milliseconds