|
Oboe
1.0
A library for creating real-time audio apps on Android
|
#include <AudioStreamBase.h>
Public Member Functions | |
| AudioStreamBase (const AudioStreamBase &)=default | |
| AudioStreamBase & | operator= (const AudioStreamBase &)=default |
| int | getChannelCount () const |
| Direction | getDirection () const |
| int32_t | getSampleRate () const |
| int | getFramesPerCallback () const |
| AudioFormat | getFormat () const |
| virtual int32_t | getBufferSizeInFrames () |
| virtual int32_t | getBufferCapacityInFrames () const |
| SharingMode | getSharingMode () const |
| PerformanceMode | getPerformanceMode () const |
| int32_t | getDeviceId () const |
| AudioStreamCallback * | getCallback () const |
| Usage | getUsage () const |
| ContentType | getContentType () const |
| InputPreset | getInputPreset () const |
| SessionId | getSessionId () const |
Protected Attributes | |
| AudioStreamCallback * | mStreamCallback = 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 |
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |
Stream audio device ID
|
protected |
Stream direction
|
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+
|
protected |
Stream performance mode
|
protected |
Stream sample rate
|
protected |
Stream session ID allocation strategy. Only active on Android 28+
|
protected |
Stream sharing mode
|
protected |
The callback which will be fired when new data is ready to be read/written
|
protected |
Stream usage. Only active on Android 28+
1.8.14