[−]Struct jni_android_sys::android::media::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]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32
) -> Result<Local<'env, AudioRecord>, Local<'env, Throwable>>
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]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getFormat<'env>(
&'env self
) -> Result<Option<Local<'env, AudioFormat>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, AudioFormat>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getBufferSizeInFrames<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getNotificationMarkerPosition<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getPositionNotificationPeriod<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getTimestamp<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioTimestamp>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioTimestamp>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getAudioSessionId<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env MediaSyncEvent>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ShortArray>>,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ShortArray>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn read_ByteBuffer_int<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn getMetrics<'env>(
&'env self
) -> Result<Option<Local<'env, PersistableBundle>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, PersistableBundle>>, Local<'env, Throwable>>
Required features: "android-os-PersistableBundle"
pub fn setRecordPositionUpdateListener_OnRecordPositionUpdateListener<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioRecord_OnRecordPositionUpdateListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioRecord_OnRecordPositionUpdateListener>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env AudioRecord_OnRecordPositionUpdateListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
setRecordPositionUpdateListener
Required features: "android-media-AudioRecord_OnRecordPositionUpdateListener", "android-os-Handler"
pub fn setNotificationMarkerPosition<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getRoutedDevice<'env>(
&'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env AudioRouting_OnRoutingChangedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env AudioRouting_OnRoutingChangedListener>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env AudioRecord_OnRoutingChangedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env AudioRecord_OnRoutingChangedListener>>
) -> Result<(), Local<'env, Throwable>>
removeOnRoutingChangedListener
Required features: "android-media-AudioRecord_OnRoutingChangedListener"
pub fn setPositionNotificationPeriod<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn setPreferredDevice<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioDeviceInfo>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioDeviceInfo>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-media-AudioDeviceInfo"
pub fn getPreferredDevice<'env>(
&'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
Required features: "android-media-AudioDeviceInfo"
pub fn getActiveMicrophones<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for AudioRecord
impl AsRef<AudioRouting> for AudioRecord
fn as_ref(&self) -> &AudioRouting
impl AsValidJObjectAndEnv for AudioRecord
impl Deref for AudioRecord
impl JniType for AudioRecord
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for AudioRecord
impl !Send for AudioRecord
impl !Sync for AudioRecord
impl Unpin for AudioRecord
impl UnwindSafe for AudioRecord
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,