HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
AndroidAudioBase.h
Go to the documentation of this file.
1#pragma once
2#ifdef __ANDROID__
3#include "NativeAudio.h"
6#include "StringHelpers.h"
7#include <jni.h>
8#include <android/api-level.h>
9
12namespace HephAudio
13{
14 namespace Native
15 {
21 {
22 protected:
28
29 public:
34 static JavaVM* jvm;
35
36 public:
39
40 AndroidAudioBase(const AndroidAudioBase&) = delete;
41 AndroidAudioBase& operator=(const AndroidAudioBase&) = delete;
42
45
46 protected:
47 bool EnumerateAudioDevices() override;
48 void GetEnv(JNIEnv** pEnv) const;
49 std::string JStringToString(JNIEnv* env, jstring jStr) const;
50 };
51 }
52}
53#endif
#define HEPH_API
Definition HephShared.h:132
base class for classes that interact with the Android audio APIs.
Definition AndroidAudioBase.h:21
uint32_t deviceApiLevel
Definition AndroidAudioBase.h:27
static JavaVM * jvm
Definition AndroidAudioBase.h:34
base class for the classes that interact with the native audio APIs.
Definition NativeAudio.h:28