• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 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 import android.media.SpatializationLevel;
20 import android.media.SpatializerHeadTrackingMode;
21 
22 /**
23  * The ISpatializerHeadTrackingCallback interface is a callback associated to the
24  * Spatializer head tracking function. It can be registered via the ISpatializer
25  * interface to monitor head tracking related states.
26  * {@hide}
27  */
28 oneway interface ISpatializerHeadTrackingCallback {
29     /** Called when the head tracking mode has changed
30      */
onHeadTrackingModeChanged(SpatializerHeadTrackingMode mode)31     void onHeadTrackingModeChanged(SpatializerHeadTrackingMode mode);
32 
33     /** Called when the head to stage pose hase been updated
34      * The head to stage pose is conveyed as a vector of 6 elements,
35      * where the first three are a translation vector and
36      * the last three are a rotation vector.
37      */
onHeadToSoundStagePoseUpdated(in float[] headToStage)38     void onHeadToSoundStagePoseUpdated(in float[] headToStage);
39 }
40