• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @addtogroup Distributed Audio
18 * @{
19 *
20 * @brief Provides APIs for communication to distributed audio SA service
21 *
22 * Call of the transmission interface between the distributed audio HDF service and
23 * the distributed audio SA service, and provide hardware driver interfaces for
24 * the upper layer.
25 *
26 * @since 6.0
27 * @version 1.0
28 */
29
30package ohos.hdi.distributed_audio.audioext.v2_0;
31
32import ohos.hdi.distributed_audio.audioext.v2_0.Types;
33
34/**
35 * @brief Basic operations for Distributed Audio devices.
36 *
37 * There are currently no events.
38 *
39 * @since 6.0
40 * @version 1.0
41 */
42[callback] interface IDAudioHdfCallback {
43    /**
44     * @brief Notify distributed audio HDF of events.
45     *
46     * @param devId Device ID for distributed audio devices.
47     * @param event Notification event types (such as focus events, volume events)
48     *
49     * @return a value of 0 if success, return a negative value if failed.
50     *
51     * @since 6.0
52     * @version 1.0
53     */
54    NotifyEvent([in] int devId, [in] struct DAudioEvent event);
55}