blob: de17d735de7a00d599008215837cbeab4663048a [file] [log] [blame]
jiabin5d116122020-02-12 13:05:44 -08001/*
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
17package android.hardware.audio@6.0;
18
19/**
20 * Asynchronous stream out event callback interface. The interface provides
21 * a way for the HAL to notify platform when there are changes, e.g. codec
22 * format change, from the lower layer.
23 */
24interface IStreamOutEventCallback {
25 /**
26 * Codec format changed.
27 *
28 * @param audioMetadata is a buffer containing decoded format changes
29 * reported by codec. The buffer contains data that can be transformed
30 * to audio metadata, which is a C++ object based map. See
31 * `system/media/audio_utils/include/audio_utils/Metadata.h` for
32 * more details.
33 */
34 oneway onCodecFormatChanged(vec<uint8_t> audioMetadata);
35};