Don Turner | ca6f91a | 2017-09-05 14:52:39 +0100 | [diff] [blame] | 1 | /* |
| 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 Burk | 9446ed6 | 2020-07-13 11:26:55 -0700 | [diff] [blame] | 17 | #include <stdint.h> |
Don Turner | ca6f91a | 2017-09-05 14:52:39 +0100 | [diff] [blame] | 18 | |
| 19 | #include "FifoControllerIndirect.h" |
| 20 | |
Don Turner | 3bf32ae | 2017-11-27 13:25:05 +0000 | [diff] [blame] | 21 | namespace oboe { |
| 22 | |
Don Turner | ca6f91a | 2017-09-05 14:52:39 +0100 | [diff] [blame] | 23 | FifoControllerIndirect::FifoControllerIndirect(uint32_t numFrames, |
Phil Burk | 08a5e0f | 2019-08-23 16:28:21 -0700 | [diff] [blame] | 24 | std::atomic<uint64_t> *readCounterAddress, |
| 25 | std::atomic<uint64_t> *writeCounterAddress) |
Phil Burk | 919cd42 | 2019-08-12 17:26:50 -0700 | [diff] [blame] | 26 | : FifoControllerBase(numFrames) |
Phil Burk | 08a5e0f | 2019-08-23 16:28:21 -0700 | [diff] [blame] | 27 | , mReadCounterAddress(readCounterAddress) |
| 28 | , mWriteCounterAddress(writeCounterAddress) |
Don Turner | ca6f91a | 2017-09-05 14:52:39 +0100 | [diff] [blame] | 29 | { |
| 30 | } |
| 31 | |
Don Turner | ca6f91a | 2017-09-05 14:52:39 +0100 | [diff] [blame] | 32 | } |