blob: 78c43399208935e4fcebc4791d03f91cbe07a1ce [file] [log] [blame]
Don Turnerca6f91a2017-09-05 14:52:39 +01001/*
2 * Copyright 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
Phil Burk9446ed62020-07-13 11:26:55 -070017#include <stdint.h>
Don Turnerca6f91a2017-09-05 14:52:39 +010018
19#include "FifoControllerIndirect.h"
20
Don Turner3bf32ae2017-11-27 13:25:05 +000021namespace oboe {
22
Don Turnerca6f91a2017-09-05 14:52:39 +010023FifoControllerIndirect::FifoControllerIndirect(uint32_t numFrames,
Phil Burk08a5e0f2019-08-23 16:28:21 -070024 std::atomic<uint64_t> *readCounterAddress,
25 std::atomic<uint64_t> *writeCounterAddress)
Phil Burk919cd422019-08-12 17:26:50 -070026 : FifoControllerBase(numFrames)
Phil Burk08a5e0f2019-08-23 16:28:21 -070027 , mReadCounterAddress(readCounterAddress)
28 , mWriteCounterAddress(writeCounterAddress)
Don Turnerca6f91a2017-09-05 14:52:39 +010029{
30}
31
Don Turnerca6f91a2017-09-05 14:52:39 +010032}