• 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 #ifndef AUDIO_SERVICE_HPAE_CALLBACK_H
17 #define AUDIO_SERVICE_HPAE_CALLBACK_H
18 #include "audio_effect.h"
19 namespace OHOS {
20 namespace AudioStandard {
21 class AudioServiceHpaeCallback {
22 public:
23     virtual void OnOpenAudioPortCb(int32_t portId) = 0;
24 
25     virtual void OnCloseAudioPortCb(int32_t result) = 0;
26 
27     virtual void OnReloadAudioPortCb(int32_t portId) = 0;
28 
29     virtual void OnSetSinkMuteCb(int32_t result) = 0;
30 
31     virtual void OnGetAllSinkInputsCb(int32_t result, std::vector<SinkInput> &sinkInputs) = 0;
32 
33     virtual void OnGetAllSourceOutputsCb(int32_t result, std::vector<SourceOutput> &sourceOutputs) = 0;
34 
35     virtual void OnGetAllSinksCb(int32_t result, std::vector<SinkInfo> &sinks) = 0;
36 
37     virtual void OnMoveSinkInputByIndexOrNameCb(int32_t result) = 0;
38 
39     virtual void OnMoveSourceOutputByIndexOrNameCb(int32_t result) = 0;
40 
41     virtual void OnSetSourceOutputMuteCb(int32_t result) = 0;
42 
43     virtual void OnGetAudioEffectPropertyCbV3(int32_t result) = 0;
44 
45     virtual void OnGetAudioEffectPropertyCb(int32_t result) = 0;
46 
47     virtual void OnGetAudioEnhancePropertyCbV3(int32_t result) = 0;
48 
49     virtual void OnGetAudioEnhancePropertyCb(int32_t result) = 0;
50 
51     virtual void HandleSourceAudioStreamRemoved(uint32_t sessionId) = 0;
52 
~AudioServiceHpaeCallback()53     virtual ~AudioServiceHpaeCallback()
54     {}
55 };
56 }  // namespace AudioStandard
57 }  // namespace OHOS
58 #endif // AUDIO_SERVICE_HPAE_CALLBACK_H