685f0e36a1
Translation between audio_offload_info_t and AudioOffloadInfo was missing a field. This was causing compressed tracks to play using 'deep_buffer' mode instead of 'offload'. Changing output stream async callback methods to 'oneway', since they don't require anything from the callee. Change-Id: I27fe7fb715e421f102db21a10d34e1dc3134cf01 Test: play MP3 file with Play Music, check audioflinger dump
37 lines
953 B
Text
37 lines
953 B
Text
/*
|
|
* Copyright (C) 2016 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.hardware.audio@2.0;
|
|
|
|
/*
|
|
* Asynchronous write callback interface.
|
|
*/
|
|
interface IStreamOutCallback {
|
|
/*
|
|
* Non blocking write completed.
|
|
*/
|
|
oneway onWriteReady();
|
|
|
|
/*
|
|
* Drain completed.
|
|
*/
|
|
oneway onDrainReady();
|
|
|
|
/*
|
|
* Stream hit an error.
|
|
*/
|
|
oneway onError();
|
|
};
|