blob: 676382566500f2bea5ed5c896564e8959daf6156 [file] [log] [blame]
Mikhail Naganov40be06c2016-09-27 17:01:34 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.audio.effect@2.0;
18
19import android.hardware.audio.common@2.0;
20import IEffect;
21
22interface IEffectsFactory {
23 /*
24 * Returns descriptors of different effects in all loaded libraries.
25 *
26 * @return retval operation completion status.
27 * @return result list of effect descriptors.
28 */
29 getAllDescriptors() generates(Result retval, vec<EffectDescriptor> result);
30
31 /*
32 * Returns a descriptor of a particular effect.
33 *
34 * @return retval operation completion status.
35 * @return result effect descriptor.
36 */
37 getDescriptor(Uuid uid) generates(Result retval, EffectDescriptor result);
38
39 /*
40 * Creates an effect engine of the specified type. To release the effect
41 * engine, it is necessary to release references to the returned effect
42 * object.
43 *
44 * @param uid effect uuid.
45 * @param session audio session to which this effect instance will be
46 * attached. All effects created with the same session ID
47 * are connected in series and process the same signal
48 * stream.
49 * @param ioHandle identifies the output or input stream this effect is
50 * directed to in audio HAL.
51 * @return retval operation completion status.
52 * @return result the interface for the created effect.
53 */
54 createEffect(Uuid uid, AudioSession session, AudioIoHandle ioHandle)
55 generates (Result retval, IEffect result);
56
57 /*
58 * Dumps information about effects into the provided file descriptor.
59 * This is used for the dumpsys facility.
60 *
61 * @param fd dump file descriptor.
62 */
63 debugDump(handle fd);
64};