[]Struct jni_android_sys::android::media::AudioRecord

#[repr(transparent)]
pub struct AudioRecord(_);

public class AudioRecord

Required feature: "android-media-AudioRecord"

Methods

impl AudioRecord

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32
) -> Result<Local<'env, AudioRecord>, Local<'env, Throwable>>
[src]

pub fn release<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn getSampleRate<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getAudioSource<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getAudioFormat<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getChannelConfiguration<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getFormat<'env>(
    &'env self
) -> Result<Option<Local<'env, AudioFormat>>, Local<'env, Throwable>>
[src]

getFormat

Required features: "android-media-AudioFormat"

pub fn getChannelCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getState<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getRecordingState<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getBufferSizeInFrames<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getNotificationMarkerPosition<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getPositionNotificationPeriod<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getTimestamp<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioTimestamp>>,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

getTimestamp

Required features: "android-media-AudioTimestamp"

pub fn getMinBufferSize<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getAudioSessionId<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn startRecording<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn startRecording_MediaSyncEvent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MediaSyncEvent>>
) -> Result<(), Local<'env, Throwable>>
[src]

startRecording

Required features: "android-media-MediaSyncEvent"

pub fn stop<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn read_byte_array_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn read_byte_array_int_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn read_short_array_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ShortArray>>,
    arg1: i32,
    arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn read_short_array_int_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ShortArray>>,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn read_float_array_int_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env FloatArray>>,
    arg1: i32,
    arg2: i32,
    arg3: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn read_ByteBuffer_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteBuffer>>,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

read

Required features: "java-nio-ByteBuffer"

pub fn read_ByteBuffer_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteBuffer>>,
    arg1: i32,
    arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

read

Required features: "java-nio-ByteBuffer"

pub fn getMetrics<'env>(
    &'env self
) -> Result<Option<Local<'env, PersistableBundle>>, Local<'env, Throwable>>
[src]

getMetrics

Required features: "android-os-PersistableBundle"

pub fn setRecordPositionUpdateListener_OnRecordPositionUpdateListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioRecord_OnRecordPositionUpdateListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

setRecordPositionUpdateListener

Required features: "android-media-AudioRecord_OnRecordPositionUpdateListener"

pub fn setRecordPositionUpdateListener_OnRecordPositionUpdateListener_Handler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioRecord_OnRecordPositionUpdateListener>>,
    arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]

setRecordPositionUpdateListener

Required features: "android-media-AudioRecord_OnRecordPositionUpdateListener", "android-os-Handler"

pub fn setNotificationMarkerPosition<'env>(
    &'env self,
    arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getRoutedDevice<'env>(
    &'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
[src]

getRoutedDevice

Required features: "android-media-AudioDeviceInfo"

pub fn addOnRoutingChangedListener_AudioRouting_Handler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioRouting_OnRoutingChangedListener>>,
    arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]

addOnRoutingChangedListener

Required features: "android-media-AudioRouting_OnRoutingChangedListener", "android-os-Handler"

pub fn removeOnRoutingChangedListener_AudioRouting<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioRouting_OnRoutingChangedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

removeOnRoutingChangedListener

Required features: "android-media-AudioRouting_OnRoutingChangedListener"

pub fn addOnRoutingChangedListener_OnRoutingChangedListener_Handler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioRecord_OnRoutingChangedListener>>,
    arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

addOnRoutingChangedListener

Required features: "android-media-AudioRecord_OnRoutingChangedListener", "android-os-Handler"

pub fn removeOnRoutingChangedListener_OnRoutingChangedListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioRecord_OnRoutingChangedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

removeOnRoutingChangedListener

Required features: "android-media-AudioRecord_OnRoutingChangedListener"

pub fn setPositionNotificationPeriod<'env>(
    &'env self,
    arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setPreferredDevice<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioDeviceInfo>>
) -> Result<bool, Local<'env, Throwable>>
[src]

setPreferredDevice

Required features: "android-media-AudioDeviceInfo"

pub fn getPreferredDevice<'env>(
    &'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
[src]

getPreferredDevice

Required features: "android-media-AudioDeviceInfo"

pub fn getActiveMicrophones<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getActiveMicrophones

Required features: "java-util-List"

pub const ERROR: i32[src]

public static final ERROR

pub const ERROR_BAD_VALUE: i32[src]

public static final ERROR_BAD_VALUE

pub const ERROR_DEAD_OBJECT: i32[src]

public static final ERROR_DEAD_OBJECT

pub const ERROR_INVALID_OPERATION: i32[src]

public static final ERROR_INVALID_OPERATION

pub const READ_BLOCKING: i32[src]

public static final READ_BLOCKING

pub const READ_NON_BLOCKING: i32[src]

public static final READ_NON_BLOCKING

pub const RECORDSTATE_RECORDING: i32[src]

public static final RECORDSTATE_RECORDING

pub const RECORDSTATE_STOPPED: i32[src]

public static final RECORDSTATE_STOPPED

pub const STATE_INITIALIZED: i32[src]

public static final STATE_INITIALIZED

pub const STATE_UNINITIALIZED: i32[src]

public static final STATE_UNINITIALIZED

pub const SUCCESS: i32[src]

public static final SUCCESS

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for AudioRecord

impl AsRef<AudioRouting> for AudioRecord

impl AsValidJObjectAndEnv for AudioRecord

impl Deref for AudioRecord

type Target = Object

The resulting type after dereferencing.

impl JniType for AudioRecord

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.