• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2020 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 
17 package android.media;
18 
19 /**
20  * A callback interface for getting effect-related notifications.
21  *
22  * {@hide}
23  */
24 interface IEffectClient {
25     /**
26      * Called whenever the status of granting control over the effect to the application
27      * has changed.
28      * @param controlGranted true iff the application has the control of the effect module.
29      */
controlStatusChanged(boolean controlGranted)30     oneway void controlStatusChanged(boolean controlGranted);
31 
32     /**
33      * Called whenever the effect has been enabled or disabled. Received only if the client is not
34      * currently controlling the effect.
35      * @param enabled true if the effect module has been activated, false if deactivated.
36      */
enableStatusChanged(boolean enabled)37     oneway void enableStatusChanged(boolean enabled);
38 
39     /**
40      * A command has been send to the effect engine. Received only if the client is not currently
41      * controlling the effect. See IEffect.command() for a description of buffer contents.
42      *
43      * TODO(ytai): replace opaque byte arrays with strongly typed parameters.
44      */
commandExecuted(int cmdCode, in byte[] cmdData, in byte[] replyData)45     oneway void commandExecuted(int cmdCode, in byte[] cmdData, in byte[] replyData);
46 }
47