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
HephAudio
HeaderFiles
NativeAudio
AndroidAudioBase.h
Go to the documentation of this file.
1
#pragma once
2
#ifdef __ANDROID__
3
#include "
NativeAudio.h
"
4
#include "
AudioEvents/AudioDeviceEventArgs.h
"
5
#include "
AudioEvents/AudioCaptureEventArgs.h
"
6
#include "
StringHelpers.h
"
7
#include <jni.h>
8
#include <android/api-level.h>
9
12
namespace
HephAudio
13
{
14
namespace
Native
15
{
20
class
HEPH_API
AndroidAudioBase
:
public
NativeAudio
21
{
22
protected
:
27
uint32_t
deviceApiLevel
;
28
29
public
:
34
static
JavaVM*
jvm
;
35
36
public
:
38
AndroidAudioBase
();
39
40
AndroidAudioBase
(
const
AndroidAudioBase
&) =
delete
;
41
AndroidAudioBase
& operator=(
const
AndroidAudioBase
&) =
delete
;
42
44
virtual
~AndroidAudioBase
();
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
AudioCaptureEventArgs.h
AudioDeviceEventArgs.h
HEPH_API
#define HEPH_API
Definition
HephShared.h:132
NativeAudio.h
StringHelpers.h
HephAudio::Native::AndroidAudioBase
base class for classes that interact with the Android audio APIs.
Definition
AndroidAudioBase.h:21
HephAudio::Native::AndroidAudioBase::EnumerateAudioDevices
bool EnumerateAudioDevices() override
HephAudio::Native::AndroidAudioBase::deviceApiLevel
uint32_t deviceApiLevel
Definition
AndroidAudioBase.h:27
HephAudio::Native::AndroidAudioBase::AndroidAudioBase
AndroidAudioBase()
HephAudio::Native::AndroidAudioBase::~AndroidAudioBase
virtual ~AndroidAudioBase()
HephAudio::Native::AndroidAudioBase::jvm
static JavaVM * jvm
Definition
AndroidAudioBase.h:34
HephAudio::Native::NativeAudio
base class for the classes that interact with the native audio APIs.
Definition
NativeAudio.h:28
Generated by
1.11.0