blob: 01e123cc2e8ae6f444a7678efda65d0c46c0faea [file] [log] [blame]
Mikhail Naganov96b30be2016-10-05 11:21:12 -07001/*
2 * Copyright (C) 2016 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@2.0;
18
Andreas Huber40d3a9b2017-03-28 16:19:16 -070019/**
Mikhail Naganov96b30be2016-10-05 11:21:12 -070020 * Asynchronous write callback interface.
21 */
22interface IStreamOutCallback {
Andreas Huber40d3a9b2017-03-28 16:19:16 -070023 /**
Mikhail Naganov96b30be2016-10-05 11:21:12 -070024 * Non blocking write completed.
25 */
Mikhail Naganov685f0e32016-12-16 17:18:08 -080026 oneway onWriteReady();
Mikhail Naganov96b30be2016-10-05 11:21:12 -070027
Andreas Huber40d3a9b2017-03-28 16:19:16 -070028 /**
Mikhail Naganov96b30be2016-10-05 11:21:12 -070029 * Drain completed.
30 */
Mikhail Naganov685f0e32016-12-16 17:18:08 -080031 oneway onDrainReady();
Mikhail Naganov96b30be2016-10-05 11:21:12 -070032
Andreas Huber40d3a9b2017-03-28 16:19:16 -070033 /**
Mikhail Naganov96b30be2016-10-05 11:21:12 -070034 * Stream hit an error.
35 */
Mikhail Naganov685f0e32016-12-16 17:18:08 -080036 oneway onError();
Mikhail Naganov96b30be2016-10-05 11:21:12 -070037};