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
AAudioParams.h
Go to the documentation of this file.
1#pragma once
2#include "HephAudioShared.h"
3#if defined(__ANDROID__) && __ANDROID_API__ >= HEPHAUDIO_ANDROID_AAUDIO_MIN_API_LEVEL
4#include "NativeAudioParams.h"
5#include <aaudio/AAudio.h>
6
9namespace HephAudio
10{
11 namespace Native
12 {
18 {
23 aaudio_sharing_mode_t renderShareMode;
24
29 aaudio_sharing_mode_t captureShareMode;
30
35 aaudio_performance_mode_t renderPerformanceMode;
36
41 aaudio_performance_mode_t capturePerformanceMode;
42
48
54
55#if __ANDROID_API__ >= 28
60 aaudio_content_type_t renderContentType;
61
66 aaudio_content_type_t captureContentType;
67
72 aaudio_usage_t renderUsage;
73
78 aaudio_usage_t captureUsage;
79#endif
80
83 : renderShareMode(AAUDIO_SHARING_MODE_SHARED), captureShareMode(AAUDIO_SHARING_MODE_SHARED)
84 , renderPerformanceMode(AAUDIO_PERFORMANCE_MODE_NONE), capturePerformanceMode(AAUDIO_PERFORMANCE_MODE_NONE)
85 , renderBufferDuration_ms(10), captureBufferDuration_ms(10)
86#if __ANDROID_API__ >= 28
87 , renderContentType(AAUDIO_CONTENT_TYPE_MUSIC), captureContentType(AAUDIO_CONTENT_TYPE_MUSIC)
88 , renderUsage(AAUDIO_USAGE_MEDIA), captureUsage(AAUDIO_USAGE_MEDIA)
89#endif
90 {}
91 };
92 }
93}
94#endif
#define HEPH_API
Definition HephShared.h:132
struct for storing the AAudio specific parameters.
Definition AAudioParams.h:18
double renderBufferDuration_ms
Definition AAudioParams.h:47
aaudio_sharing_mode_t renderShareMode
Definition AAudioParams.h:23
aaudio_sharing_mode_t captureShareMode
Definition AAudioParams.h:29
aaudio_performance_mode_t capturePerformanceMode
Definition AAudioParams.h:41
AAudioParams()
Definition AAudioParams.h:82
aaudio_content_type_t renderContentType
Definition AAudioParams.h:60
aaudio_usage_t captureUsage
Definition AAudioParams.h:78
aaudio_usage_t renderUsage
Definition AAudioParams.h:72
double captureBufferDuration_ms
Definition AAudioParams.h:53
aaudio_content_type_t captureContentType
Definition AAudioParams.h:66
aaudio_performance_mode_t renderPerformanceMode
Definition AAudioParams.h:35
base class for storing the native audio API specific parameters.
Definition NativeAudioParams.h:15