Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustAudio/coreaudio-rs
/ functions
Functions
102 in github.com/RustAudio/coreaudio-rs
⨍
Functions
102
◇
Types & classes
32
↓ 13 callers
Method
contains
Returns `true` if all of the flags in `other` are contained within `self`.
src/audio_unit/render_callback.rs:414
↓ 13 callers
Method
set_property
Sets the value for some property of the **AudioUnit**. To clear an audio unit property value, set the data parameter with `None::<()>`. Clearing pro
src/audio_unit/mod.rs:261
↓ 8 callers
Method
get
Retrieve the current state of the `ActionFlags`.
src/audio_unit/render_callback.rs:385
↓ 8 callers
Function
get_default_device_id
Helper function to get the device id of the default input or output device.
src/audio_unit/macos_helpers.rs:43
↓ 7 callers
Method
start
Starts an I/O **AudioUnit**, which in turn starts the audio unit processing graph that it is connected to. Available** in OS X v10.0 and later.
src/audio_unit/mod.rs:289
↓ 7 callers
Method
to_asbd
Convert a StreamFormat into an AudioStreamBasicDescription. Note that this function assumes that only packed formats are used. This only affects I24,
src/audio_unit/stream_format.rs:110
↓ 6 callers
Method
next
(&mut self)
examples/sine_advanced.rs:50
↓ 6 callers
Method
set_render_callback
Pass a render callback (aka "Input Procedure") to the **AudioUnit**.
src/audio_unit/render_callback.rs:475
↓ 5 callers
Function
audio_unit_from_device_id
Create an AudioUnit instance from a device id. Set `input` to `true` to create a capture device, or `false` for a playback device.
src/audio_unit/macos_helpers.rs:95
↓ 5 callers
Method
bits
The raw value of the flags currently stored.
src/audio_unit/render_callback.rs:394
↓ 5 callers
Method
channels_mut
An iterator yielding a mutable reference to each channel in the array.
src/audio_unit/render_callback.rs:182
↓ 5 callers
Method
register
Register this listener to receive notifications.
src/audio_unit/macos_helpers.rs:745
↓ 4 callers
Method
as_os_status
(&self)
src/error.rs:48
↓ 4 callers
Method
get_property
Gets the value of an **AudioUnit** property. Available** in iOS 2.0 and later. Parameters ---------- - **id**: The identifier of the property. - **
src/audio_unit/mod.rs:281
↓ 4 callers
Method
initialize
On successful initialization, the audio formats for input and output are valid and the audio unit is ready to render. During initialization, an audio
src/audio_unit/mod.rs:224
↓ 4 callers
Method
size_in_bytes
Return the size of one sample in bytes, assuming that the format is packed.
src/audio_unit/sample_format.rs:60
↓ 3 callers
Method
does_match_flags
Check if the format flags are appropriate for the given format.
src/audio_unit/sample_format.rs:20
↓ 3 callers
Method
set
(&mut self, flags: ActionFlags)
src/audio_unit/render_callback.rs:389
↓ 2 callers
Function
asbds_are_equal
Helper to check if two ASBDs are equal.
src/audio_unit/macos_helpers.rs:574
↓ 2 callers
Function
audio_session_get_property
(id: u32)
src/audio_unit/mod.rs:489
↓ 2 callers
Method
free_input_callback
Retrieves ownership over the input callback and returns it where it can be re-used or safely dropped.
src/audio_unit/render_callback.rs:737
↓ 2 callers
Method
free_render_callback
Retrieves ownership over the render callback and returns it where it can be re-used or safely dropped.
src/audio_unit/render_callback.rs:725
↓ 2 callers
Function
get_audio_device_ids
()
src/audio_unit/macos_helpers.rs:199
↓ 2 callers
Function
get_audio_device_ids_for_scope
List all audio device ids on the system.
src/audio_unit/macos_helpers.rs:148
↓ 2 callers
Function
get_hogging_pid
Helper for hog mode (exclusive access). Get the pid of the process that currently owns exclusive access to a device. A pid value of -1 means no proces
src/audio_unit/macos_helpers.rs:934
↓ 2 callers
Method
get_nbr_values
Get the number of sample rate values received (equals the number of change events). Not used if the RateListener was created with a `std::sync::mpsc::
src/audio_unit/macos_helpers.rs:810
↓ 2 callers
Function
get_property
Gets the value of an **AudioUnit** property. Available** in iOS 2.0 and later. Parameters ---------- - **au**: The AudioUnit instance. - **id**: Th
src/audio_unit/mod.rs:461
↓ 2 callers
Function
get_supported_physical_stream_formats
Get a vector with all supported physical formats as AudioBasicRangedDescriptions.
src/audio_unit/macos_helpers.rs:589
↓ 2 callers
Method
output_stream_format
Return the current output Stream Format for the AudioUnit.
src/audio_unit/mod.rs:354
↓ 2 callers
Method
set_input_callback
Pass an input callback (aka "Input Procedure") to the **AudioUnit**.
src/audio_unit/render_callback.rs:546
↓ 2 callers
Method
size_in_bits
Return the number of valid bits for one sample.
src/audio_unit/sample_format.rs:72
↓ 2 callers
Method
stream_format
Return the current Stream Format for the AudioUnit.
src/audio_unit/mod.rs:347
↓ 2 callers
Function
toggle_hog_mode
Helper for hog mode (exclusive access). Toggle hog mode for a device. If no process owns exclusive access, then the calling process takes ownership. I
src/audio_unit/macos_helpers.rs:964
↓ 2 callers
Method
uninitialize
Before you change an initialize audio unit’s processing characteristics, such as its input or output audio data format or its sample rate, you must fi
src/audio_unit/mod.rs:237
↓ 2 callers
Method
unregister
Unregister this listener to stop receiving notifications.
src/audio_unit/macos_helpers.rs:792
↓ 1 callers
Method
as_format_and_flag
Convert from the Rust enum to the C format and flag.
src/audio_unit/audio_format.rs:255
↓ 1 callers
Method
as_mut
(&mut self)
src/audio_unit/mod.rs:371
↓ 1 callers
Method
as_subtype_u32
Convert the `Type` to the const `u32` that is associated with its subtype.
src/audio_unit/types.rs:141
↓ 1 callers
Method
as_u32
Convert the `Type` to its associated `u32` for compatibility with original API.
src/audio_unit/types.rs:125
↓ 1 callers
Function
audio_unit_from_device_id_uninitialized
Create an AudioUnit instance from a device id without initializing it. Set `input` to `true` to create a capture device, or `false` for a playback dev
src/audio_unit/macos_helpers.rs:106
↓ 1 callers
Function
find_matching_physical_format
Find the closest match of the physical formats to the provided `StreamFormat`. This function will pick the first format it finds that supports the pro
src/audio_unit/macos_helpers.rs:449
↓ 1 callers
Function
get_audio_device_supports_scope
does this device support input / ouptut?
src/audio_unit/macos_helpers.rs:256
↓ 1 callers
Function
get_available_sample_rates
Get the available nominal sample rate ranges for a device. Returns a vector of [`AudioValueRange`] where each entry describes a supported range. For
src/audio_unit/macos_helpers.rs:633
↓ 1 callers
Function
get_device_name
Get the device name for a device id.
src/audio_unit/macos_helpers.rs:314
↓ 1 callers
Function
get_device_transport_type
Get the transport type of a device. The returned value is one of the `kAudioDeviceTransportType*` constants (e.g. `kAudioDeviceTransportTypeUSB`, `kA
src/audio_unit/macos_helpers.rs:679
↓ 1 callers
Method
input_stream_format
Return the current input Stream Format for the AudioUnit.
src/audio_unit/mod.rs:359
↓ 1 callers
Method
next
(&mut self)
examples/sine.rs:29
↓ 1 callers
Method
next
(&mut self)
examples/apple/src/feedback.rs:40
↓ 1 callers
Function
run_example
()
examples/apple/src/feedback.rs:47
↓ 1 callers
Function
set_device_physical_stream_format
Change the physical stream format (sample rate and format) of a device.
src/audio_unit/macos_helpers.rs:501
↓ 1 callers
Function
set_property
Sets the value for some property of the **AudioUnit**. To clear an audio unit property value, set the data parameter with `None::<()>`. Clearing pro
src/audio_unit/mod.rs:423
↓ 1 callers
Method
stop
Stops an I/O **AudioUnit**, which in turn stops the audio unit processing graph that it is connected to. Available** in OS X v10.0 and later.
src/audio_unit/mod.rs:300
Method
alive_listener
( device_id: AudioObjectID, _n_addresses: u32, _properties: NonNull<AudioO
src/audio_unit/macos_helpers.rs:868
Method
as_ref
(&self)
src/audio_unit/mod.rs:365
Method
channels
An iterator yielding a reference to each channel in the array.
src/audio_unit/render_callback.rs:173
Method
copy_values
Copy all received values to a Vec. The latest value is the last element. The internal buffer is preserved. Not used if the RateListener was created wi
src/audio_unit/macos_helpers.rs:817
Method
does_stream_format_match
(_: &StreamFormat)
src/audio_unit/render_callback.rs:86
Method
drain_values
Get all received values as a Vec. The latest value is the last element. This clears the internal buffer. Not used if the RateListener was created with
src/audio_unit/macos_helpers.rs:829
Method
drop
(&mut self)
src/audio_unit/mod.rs:379
Method
drop
(&mut self)
src/audio_unit/macos_helpers.rs:717
Method
fmt
(&self, f: &mut ::std::fmt::Formatter)
src/error.rs:56
Method
fmt
(&self, f: &mut fmt::Formatter)
src/audio_unit/render_callback.rs:374
Method
from
(ty: EffectType)
src/audio_unit/types.rs:155
Method
from_asbd
(asbd: AudioStreamBasicDescription)
src/audio_unit/stream_format.rs:72
Method
from_flags_and_bits_per_sample
Convert format flags and bits_per_sample to a SampleFormat.
src/audio_unit/sample_format.rs:34
Method
from_format_and_flag
Convert from the FFI C format and flags to a typesafe Rust enum representation.
src/audio_unit/audio_format.rs:194
Method
from_input_proc_args
(_num_frames: u32, io_data: *mut AudioBufferList)
src/audio_unit/render_callback.rs:89
Method
from_os_status
(os_status: OSStatus)
src/error.rs:34
Method
from_ptr
Wrap the given pointer with a `Handle`.
src/audio_unit/render_callback.rs:440
Method
from_u32
Create an Mpeg4ObjectId from a u32.
src/audio_unit/audio_format.rs:478
Function
get_device_id_from_name
Find the device id for a device name. Set `input` to `true` to find a playback device, or `false` for a capture device.
src/audio_unit/macos_helpers.rs:76
Function
input_proc
Callback procedure that will be called each time our audio_unit requests audio.
src/audio_unit/render_callback.rs:766
Method
insert
Insert the specified flags in-place.
src/audio_unit/render_callback.rs:419
Method
intersects
Returns `true` if there are flags common to both `self` and `other`.
src/audio_unit/render_callback.rs:409
Method
is_alive
Check if the device is still alive.
src/audio_unit/macos_helpers.rs:926
Method
is_all
Returns `true` if all flags are currently stored.
src/audio_unit/render_callback.rs:404
Method
is_empty
Returns `true` if no flags are currently stored.
src/audio_unit/render_callback.rs:399
Function
main
()
examples/sine.rs:36
Function
main
()
examples/sine_advanced.rs:57
Function
main
()
examples/feedback.rs:22
Function
main
()
examples/feedback_interleaved.rs:24
Method
new
Construct a new AudioUnit with any type that may be automatically converted into [**Type**](./enum.Type). Here is a list of compatible types: - [**T
src/audio_unit/mod.rs:120
Method
new
Create a new RateListener for the given AudioDeviceID. If an `std::sync::mpsc::Sender` is provided, then events will be pushed to that channel. If not
src/audio_unit/macos_helpers.rs:727
Method
new
(freq: f64, volume: f64)
examples/sine.rs:18
Method
new
(freq: f64, volume: f64)
examples/sine_advanced.rs:39
Method
new
(sample_rate: f64, freq: f64, volume: f64)
examples/apple/src/feedback.rs:28
Method
new_uninitialized
Construct a new AudioUnit with any type that may be automatically converted into [**Type**](./enum.Type). This constructor leaves the audio unit unini
src/audio_unit/mod.rs:147
Method
new_with_flags
The same as [**AudioUnit::new**](./struct.AudioUnit#method.new) but with the given component flags and mask.
src/audio_unit/mod.rs:208
Method
new_with_flags_uninitialized
The same as [**AudioUnit::new**](./struct.AudioUnit#method.new) but with the given component flags and mask.
src/audio_unit/mod.rs:156
Method
next
(&mut self)
src/audio_unit/render_callback.rs:138
Method
rate_listener
( device_id: AudioObjectID, _n_addresses: u32, _properties: NonNull<AudioO
src/audio_unit/macos_helpers.rs:746
Method
remove
Remove the specified flags in-place.
src/audio_unit/render_callback.rs:426
Function
rust_apple_main
()
examples/apple/src/lib.rs:4
Method
sample_rate
Get the **AudioUnit**'s sample rate.
src/audio_unit/mod.rs:316
Function
set_device_sample_rate
Change the sample rate of a device. Adapted from CPAL.
src/audio_unit/macos_helpers.rs:349
Method
set_sample_rate
Set the **AudioUnit**'s sample rate. Available** in iOS 2.0 and later.
src/audio_unit/mod.rs:310
Method
set_stream_format
Sets the current **StreamFormat** for the AudioUnit. Core Audio uses slightly different defaults depending on the platform. From the Core Audio Over
src/audio_unit/mod.rs:335
Function
test_get_audio_device_ids
()
src/audio_unit/macos_helpers.rs:204
Function
test_get_audio_device_ids_for_scope
()
src/audio_unit/macos_helpers.rs:240
Function
test_get_available_sample_rates
()
src/audio_unit/macos_helpers.rs:209
next →
1–100 of 102, ranked by callers