#[repr(C)]
pub struct oboe_AudioStreamBase {
Show 32 fields pub vtable_: *const oboe_AudioStreamBase__bindgen_vtable, pub mDataCallback: *mut oboe_AudioStreamDataCallback, pub mSharedDataCallback: [u64; 2], pub mErrorCallback: *mut oboe_AudioStreamErrorCallback, pub mSharedErrorCallback: [u64; 2], pub mFramesPerCallback: i32, pub mChannelCount: i32, pub mSampleRate: i32, pub mDeviceId: i32, pub mBufferCapacityInFrames: i32, pub mBufferSizeInFrames: i32, pub mChannelMask: oboe_ChannelMask, pub mSharingMode: oboe_SharingMode, pub mFormat: oboe_AudioFormat, pub mDirection: oboe_Direction, pub mPerformanceMode: oboe_PerformanceMode, pub mUsage: oboe_Usage, pub mContentType: oboe_ContentType, pub mInputPreset: oboe_InputPreset, pub mSessionId: oboe_SessionId, pub mAllowedCapturePolicy: oboe_AllowedCapturePolicy, pub mPrivacySensitiveMode: oboe_PrivacySensitiveMode, pub mPackageName: std_string, pub mAttributionTag: std_string, pub mIsContentSpatialized: bool, pub mSpatializationBehavior: oboe_SpatializationBehavior, pub mHardwareChannelCount: i32, pub mHardwareSampleRate: i32, pub mHardwareFormat: oboe_AudioFormat, pub mChannelConversionAllowed: bool, pub mFormatConversionAllowed: bool, pub mSampleRateConversionQuality: oboe_SampleRateConversionQuality,
}
Expand description

Base class containing parameters for audio streams and builders.

Fields§

§vtable_: *const oboe_AudioStreamBase__bindgen_vtable§mDataCallback: *mut oboe_AudioStreamDataCallback

The callback which will be fired when new data is ready to be read/written.

§mSharedDataCallback: [u64; 2]§mErrorCallback: *mut oboe_AudioStreamErrorCallback

The callback which will be fired when an error or a disconnect occurs.

§mSharedErrorCallback: [u64; 2]§mFramesPerCallback: i32

Number of audio frames which will be requested in each callback

§mChannelCount: i32

Stream channel count

§mSampleRate: i32

Stream sample rate

§mDeviceId: i32

Stream audio device ID

§mBufferCapacityInFrames: i32

Stream buffer capacity specified as a number of audio frames

§mBufferSizeInFrames: i32

Stream buffer size specified as a number of audio frames

§mChannelMask: oboe_ChannelMask

Stream channel mask. Only active on Android 32+

§mSharingMode: oboe_SharingMode

Stream sharing mode

§mFormat: oboe_AudioFormat

Format of audio frames

§mDirection: oboe_Direction

Stream direction

§mPerformanceMode: oboe_PerformanceMode

Stream performance mode

§mUsage: oboe_Usage

Stream usage. Only active on Android 28+

§mContentType: oboe_ContentType

Stream content type. Only active on Android 28+

§mInputPreset: oboe_InputPreset

Stream input preset. Only active on Android 28+ TODO InputPreset::Unspecified should be considered as a possible default alternative.

§mSessionId: oboe_SessionId

Stream session ID allocation strategy. Only active on Android 28+

§mAllowedCapturePolicy: oboe_AllowedCapturePolicy

Allowed Capture Policy. Only active on Android 29+

§mPrivacySensitiveMode: oboe_PrivacySensitiveMode

Privacy Sensitive Mode. Only active on Android 30+

§mPackageName: std_string

Control the name of the package creating the stream. Only active on Android 31+

§mAttributionTag: std_string

Control the attribution tag of the context creating the stream. Only active on Android 31+

§mIsContentSpatialized: bool

Whether the content is already spatialized. Only used on Android 32+

§mSpatializationBehavior: oboe_SpatializationBehavior

Spatialization Behavior. Only active on Android 32+

§mHardwareChannelCount: i32

Hardware channel count. Only specified on Android 34+ AAudio streams

§mHardwareSampleRate: i32

Hardware sample rate. Only specified on Android 34+ AAudio streams

§mHardwareFormat: oboe_AudioFormat

Hardware format. Only specified on Android 34+ AAudio streams

§mChannelConversionAllowed: bool§mFormatConversionAllowed: bool§mSampleRateConversionQuality: oboe_SampleRateConversionQuality

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.