blob: b49d9ba515b84b5bc4e4914aada30a51f88dc5ac [file] [log] [blame]
Jean-Michel Trivi21cd5412019-10-30 08:16:51 -07001/*
2 * Copyright (C) 2019 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
Jean-Michel Trivi0e87bca2020-02-18 14:30:29 -080017#ifndef ANDROID_MEDIA_AUDIODEVICEATTRIBUTES_H
18#define ANDROID_MEDIA_AUDIODEVICEATTRIBUTES_H
Jean-Michel Trivi21cd5412019-10-30 08:16:51 -070019
Jean-Michel Trivi21cd5412019-10-30 08:16:51 -070020#include <media/AudioDeviceTypeAddr.h>
Jean-Michel Trivi036c5ac2020-02-06 14:01:00 -080021#include <system/audio.h>
Jean-Michel Trivi21cd5412019-10-30 08:16:51 -070022
23#include "jni.h"
24
25namespace android {
26
Jean-Michel Trivi0e87bca2020-02-18 14:30:29 -080027// Create a Java AudioDeviceAttributes instance from a C++ AudioDeviceTypeAddress
Jean-Michel Trivi21cd5412019-10-30 08:16:51 -070028
Jean-Michel Trivi0e87bca2020-02-18 14:30:29 -080029extern jint createAudioDeviceAttributesFromNative(JNIEnv *env, jobject *jAudioDeviceAttributes,
Jean-Michel Trivi036c5ac2020-02-06 14:01:00 -080030 const AudioDeviceTypeAddr *devTypeAddr);
Jean-Michel Trivi21cd5412019-10-30 08:16:51 -070031} // namespace android
32
33#endif