Oboe
1.5
A library for creating real-time audio apps on Android
|
#include <AudioStreamBase.h>
Protected Member Functions | |
virtual Result | isValidConfig () |
Protected Attributes | |
AudioStreamDataCallback * | mDataCallback = nullptr |
AudioStreamErrorCallback * | mErrorCallback = nullptr |
int32_t | mFramesPerCallback = kUnspecified |
int32_t | mChannelCount = kUnspecified |
int32_t | mSampleRate = kUnspecified |
int32_t | mDeviceId = kUnspecified |
int32_t | mBufferCapacityInFrames = kUnspecified |
int32_t | mBufferSizeInFrames = kUnspecified |
int32_t | mFramesPerBurst = kUnspecified |
SharingMode | mSharingMode = SharingMode::Shared |
AudioFormat | mFormat = AudioFormat::Unspecified |
Direction | mDirection = Direction::Output |
PerformanceMode | mPerformanceMode = PerformanceMode::None |
Usage | mUsage = Usage::Media |
ContentType | mContentType = ContentType::Music |
InputPreset | mInputPreset = InputPreset::VoiceRecognition |
SessionId | mSessionId = SessionId::None |
bool | mChannelConversionAllowed = false |
bool | mFormatConversionAllowed = false |
SampleRateConversionQuality | mSampleRateConversionQuality = SampleRateConversionQuality::None |
Base class containing parameters for audio streams and builders.
|
default |
Default copy constructor
|
inlinevirtual |
|
inlinevirtual |
Query the maximum number of frames that can be filled without blocking. If the stream has been closed the last known value will be returned.
|
inline |
|
inline |
|
inline |
For internal use only.
|
inline |
|
inline |
|
inline |
For internal use only.
|
inline |
|
inline |
getFramesPerDataCallback
instead.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Note that if the app does not set an error callback then a default one may be provided.
|
inline |
|
inlineprotectedvirtual |
Validate stream parameters that might not be checked in lower layers
|
default |
Default assignment operator
|
protected |
Stream buffer capacity specified as a number of audio frames
|
protected |
Stream buffer size specified as a number of audio frames
|
protected |
Stream channel count
|
protected |
Stream content type. Only active on Android 28+
|
protected |
The callback which will be fired when new data is ready to be read/written.
|
protected |
Stream audio device ID
|
protected |
Stream direction
|
protected |
The callback which will be fired when an error or a disconnect occurs.
|
protected |
Format of audio frames
|
protected |
Number of frames which will be copied to/from the audio device in a single read/write operation
|
protected |
Number of audio frames which will be requested in each callback
|
protected |
Stream input preset. Only active on Android 28+ TODO InputPreset::Unspecified should be considered as a possible default alternative.
|
protected |
Stream performance mode
|
protected |
Stream sample rate
|
protected |
Stream session ID allocation strategy. Only active on Android 28+
|
protected |
Stream sharing mode
|
protected |
Stream usage. Only active on Android 28+