• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 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 
17 #include "lb2/loopback2.h"
18 #include "loopback_sles.h"
19 
20 native_engine_t sEngines[NATIVE_ENGINE_COUNT] = {
21     // NATIVE_ENGINE_SLES
22     {
23         slesComputeDefaultSettings,
24         slesInit,
25         slesDestroy,
26         slesProcessNext,
27         slesGetRecorderBufferPeriod,
28         slesGetRecorderMaxBufferPeriod,
29         slesGetRecorderVarianceBufferPeriod,
30         slesGetPlayerBufferPeriod,
31         slesGetPlayerMaxBufferPeriod,
32         slesGetPlayerVarianceBufferPeriod,
33         slesGetCaptureRank,
34         slesGetPlayerTimeStampsAndExpectedBufferPeriod,
35         slesGetRecorderTimeStampsAndExpectedBufferPeriod
36     },
37     // NATIVE_ENGINE_AAUDIO
38     {
39         lb2ComputeDefaultSettings,
40         lb2Init,
41         lb2Destroy,
42         lb2ProcessNext,
43         lb2GetRecorderBufferPeriod,
44         lb2GetRecorderMaxBufferPeriod,
45         lb2GetRecorderVarianceBufferPeriod,
46         lb2GetPlayerBufferPeriod,
47         lb2GetPlayerMaxBufferPeriod,
48         lb2GetPlayerVarianceBufferPeriod,
49         lb2GetCaptureRank,
50         lb2GetPlayerTimeStampsAndExpectedBufferPeriod,
51         lb2GetRecorderTimeStampsAndExpectedBufferPeriod
52     }
53 };
54