[−]Struct jni_android_sys::android::media::AudioTrack
public class AudioTrack
Required feature: "android-media-AudioTrack"
Methods
impl AudioTrack
pub fn new_int_int_int_int_int_int<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: i32
) -> Result<Local<'env, AudioTrack>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: i32
) -> Result<Local<'env, AudioTrack>, Local<'env, Throwable>>
pub fn new_int_int_int_int_int_int_int<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: i32,
arg6: i32
) -> Result<Local<'env, AudioTrack>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: i32,
arg6: i32
) -> Result<Local<'env, AudioTrack>, Local<'env, Throwable>>
pub fn new_AudioAttributes_AudioFormat_int_int_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env AudioAttributes>>,
arg1: impl Into<Option<&'env AudioFormat>>,
arg2: i32,
arg3: i32,
arg4: i32
) -> Result<Local<'env, AudioTrack>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env AudioAttributes>>,
arg1: impl Into<Option<&'env AudioFormat>>,
arg2: i32,
arg3: i32,
arg4: i32
) -> Result<Local<'env, AudioTrack>, Local<'env, Throwable>>
Required features: "android-media-AudioAttributes", "android-media-AudioFormat"
pub fn release<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getMinVolume<'env>(
__jni_env: &'env Env
) -> Result<f32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<f32, Local<'env, Throwable>>
pub fn getMaxVolume<'env>(
__jni_env: &'env Env
) -> Result<f32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<f32, Local<'env, Throwable>>
pub fn getSampleRate<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getPlaybackRate<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getPlaybackParams<'env>(
&'env self
) -> Result<Option<Local<'env, PlaybackParams>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, PlaybackParams>>, Local<'env, Throwable>>
Required features: "android-media-PlaybackParams"
pub fn getAudioFormat<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getStreamType<'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 getPlayState<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getBufferSizeInFrames<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn setBufferSizeInFrames<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getBufferCapacityInFrames<'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 getPlaybackHeadPosition<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getUnderrunCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getPerformanceMode<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getNativeOutputSampleRate<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
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 getTimestamp<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioTimestamp>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioTimestamp>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-media-AudioTimestamp"
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 setPlaybackPositionUpdateListener_OnPlaybackPositionUpdateListener<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioTrack_OnPlaybackPositionUpdateListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioTrack_OnPlaybackPositionUpdateListener>>
) -> Result<(), Local<'env, Throwable>>
setPlaybackPositionUpdateListener
Required features: "android-media-AudioTrack_OnPlaybackPositionUpdateListener"
pub fn setPlaybackPositionUpdateListener_OnPlaybackPositionUpdateListener_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioTrack_OnPlaybackPositionUpdateListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioTrack_OnPlaybackPositionUpdateListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
setPlaybackPositionUpdateListener
Required features: "android-media-AudioTrack_OnPlaybackPositionUpdateListener", "android-os-Handler"
pub fn setStereoVolume<'env>(
&'env self,
arg0: f32,
arg1: f32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32
) -> Result<i32, Local<'env, Throwable>>
pub fn setVolume<'env>(
&'env self,
arg0: f32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<i32, Local<'env, Throwable>>
pub fn createVolumeShaper<'env>(
&'env self,
arg0: impl Into<Option<&'env VolumeShaper_Configuration>>
) -> Result<Option<Local<'env, VolumeShaper>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env VolumeShaper_Configuration>>
) -> Result<Option<Local<'env, VolumeShaper>>, Local<'env, Throwable>>
Required features: "android-media-VolumeShaper", "android-media-VolumeShaper_Configuration"
pub fn setPlaybackRate<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn setPlaybackParams<'env>(
&'env self,
arg0: impl Into<Option<&'env PlaybackParams>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env PlaybackParams>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-PlaybackParams"
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 setPositionNotificationPeriod<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn setPlaybackHeadPosition<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn setLoopPoints<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn setPresentation<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioPresentation>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioPresentation>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-media-AudioPresentation"
pub fn play<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn stop<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn pause<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn flush<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn write_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 write_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 write_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 write_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 write_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 write_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 write_ByteBuffer_int_int_long<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i32,
arg2: i32,
arg3: i64
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>,
arg1: i32,
arg2: i32,
arg3: i64
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-nio-ByteBuffer"
pub fn reloadStaticData<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn attachAuxEffect<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn setAuxEffectSendLevel<'env>(
&'env self,
arg0: f32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> 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 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_AudioTrack_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioTrack_OnRoutingChangedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioTrack_OnRoutingChangedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-AudioTrack_OnRoutingChangedListener", "android-os-Handler"
pub fn removeOnRoutingChangedListener_AudioTrack<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioTrack_OnRoutingChangedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioTrack_OnRoutingChangedListener>>
) -> Result<(), Local<'env, Throwable>>
removeOnRoutingChangedListener
Required features: "android-media-AudioTrack_OnRoutingChangedListener"
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 MODE_STATIC: i32
[src]
public static final MODE_STATIC
pub const MODE_STREAM: i32
[src]
public static final MODE_STREAM
pub const PERFORMANCE_MODE_LOW_LATENCY: i32
[src]
public static final PERFORMANCE_MODE_LOW_LATENCY
pub const PERFORMANCE_MODE_NONE: i32
[src]
public static final PERFORMANCE_MODE_NONE
pub const PERFORMANCE_MODE_POWER_SAVING: i32
[src]
public static final PERFORMANCE_MODE_POWER_SAVING
pub const PLAYSTATE_PAUSED: i32
[src]
public static final PLAYSTATE_PAUSED
pub const PLAYSTATE_PLAYING: i32
[src]
public static final PLAYSTATE_PLAYING
pub const PLAYSTATE_STOPPED: i32
[src]
public static final PLAYSTATE_STOPPED
pub const STATE_INITIALIZED: i32
[src]
public static final STATE_INITIALIZED
pub const STATE_NO_STATIC_DATA: i32
[src]
public static final STATE_NO_STATIC_DATA
pub const STATE_UNINITIALIZED: i32
[src]
public static final STATE_UNINITIALIZED
pub const SUCCESS: i32
[src]
public static final SUCCESS
pub const WRITE_BLOCKING: i32
[src]
public static final WRITE_BLOCKING
pub const WRITE_NON_BLOCKING: i32
[src]
public static final WRITE_NON_BLOCKING
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 AudioTrack
impl AsRef<AudioRouting> for AudioTrack
fn as_ref(&self) -> &AudioRouting
impl AsRef<VolumeAutomation> for AudioTrack
fn as_ref(&self) -> &VolumeAutomation
impl AsValidJObjectAndEnv for AudioTrack
impl Deref for AudioTrack
impl JniType for AudioTrack
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for AudioTrack
impl !Send for AudioTrack
impl !Sync for AudioTrack
impl Unpin for AudioTrack
impl UnwindSafe for AudioTrack
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>,