Oboe
A library for creating real-time audio apps on Android
Loading...
Searching...
No Matches
OboeExtensions.h
1/*
2 * Copyright 2022 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#ifndef OBOE_EXTENSIONS_
18#define OBOE_EXTENSIONS_
19
20#include <stdint.h>
21
22#include "oboe/Definitions.h"
23#include "oboe/AudioStream.h"
24
25namespace oboe {
26
33public:
34
38 static bool isMMapSupported();
39
43 static bool isMMapEnabled();
44
53 static int32_t setMMapEnabled(bool enabled);
54
59 static bool isMMapUsed(oboe::AudioStream *oboeStream);
60};
61
62} // namespace oboe
63
64#endif // OBOE_LATENCY_TUNER_
Definition: AudioStream.h:44
Definition: OboeExtensions.h:32
static bool isMMapSupported()
static bool isMMapUsed(oboe::AudioStream *oboeStream)
static int32_t setMMapEnabled(bool enabled)
static bool isMMapEnabled()
Definition: AudioStream.h:31