Docs.rs
audio-toolbox-0.1.1
audio-toolbox 0.1.1
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
libark
Dependencies
core-audio-types ^0.3.0
normal
core-foundation ^0.10
normal
libc ^0.2
normal
objc2-audio-toolbox ^0.3.2
normal
Versions
0%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-apple-ios
x86_64-apple-darwin
x86_64-apple-ios
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Unit
audio_
toolbox
0.1.1
Unit
Aliased Type
Methods
clear_property
get_parameter
get_property
get_property_bytes
initialize
property_info
render
reset
set_parameter
set_property
set_property_bytes
start_output_unit
stop_output_unit
uninitialize
In audio_
toolbox::
audio_
unit
audio_toolbox
::
audio_unit
Type Alias
Unit
Copy item path
Source
pub type Unit =
ComponentInstance
;
Aliased Type
§
pub struct Unit {
/* private fields */
}
Implementations
§
Source
§
impl
Unit
Source
pub fn
initialize
(&self) ->
Result
<
()
,
OSStatus
>
Source
pub fn
uninitialize
(&self) ->
Result
<
()
,
OSStatus
>
Source
pub fn
start_output_unit
(&self) ->
Result
<
()
,
OSStatus
>
Source
pub fn
stop_output_unit
(&self) ->
Result
<
()
,
OSStatus
>
Source
pub fn
property_info
( &self, property_id:
AudioUnitPropertyID
, scope:
AudioUnitScope
, element:
AudioUnitElement
, ) ->
Result
<(
u32
,
bool
),
OSStatus
>
Source
pub fn
get_property
<T:
Copy
>( &self, property_id:
AudioUnitPropertyID
, scope:
AudioUnitScope
, element:
AudioUnitElement
, ) ->
Result
<T,
OSStatus
>
Source
pub fn
get_property_bytes
( &self, property_id:
AudioUnitPropertyID
, scope:
AudioUnitScope
, element:
AudioUnitElement
, ) ->
Result
<
Vec
<
u8
>,
OSStatus
>
Source
pub fn
set_property
<T:
Copy
>( &self, property_id:
AudioUnitPropertyID
, scope:
AudioUnitScope
, element:
AudioUnitElement
, value:
&T
, ) ->
Result
<
()
,
OSStatus
>
Source
pub fn
set_property_bytes
( &self, property_id:
AudioUnitPropertyID
, scope:
AudioUnitScope
, element:
AudioUnitElement
, bytes: &[
u8
], ) ->
Result
<
()
,
OSStatus
>
Source
pub fn
clear_property
( &self, property_id:
AudioUnitPropertyID
, scope:
AudioUnitScope
, element:
AudioUnitElement
, ) ->
Result
<
()
,
OSStatus
>
Source
pub fn
get_parameter
( &self, parameter_id:
AudioUnitParameterID
, scope:
AudioUnitScope
, element:
AudioUnitElement
, ) ->
Result
<
AudioUnitParameterValue
,
OSStatus
>
Source
pub fn
set_parameter
( &self, parameter_id:
AudioUnitParameterID
, scope:
AudioUnitScope
, element:
AudioUnitElement
, value:
AudioUnitParameterValue
, buffer_offset_in_frames:
u32
, ) ->
Result
<
()
,
OSStatus
>
Source
pub fn
reset
( &self, scope:
AudioUnitScope
, element:
AudioUnitElement
, ) ->
Result
<
()
,
OSStatus
>
Source
pub unsafe fn
render
( &self, action_flags:
Option
<&mut
AudioUnitRenderActionFlags
>, time_stamp: &
AudioTimeStamp
, output_bus_number:
u32
, number_frames:
u32
, io_data: &mut
AudioBufferList
, ) ->
Result
<
()
,
OSStatus
>