MCPcopy Create free account

hub / github.com/RustAudio/coreaudio-rs / functions

Functions102 in github.com/RustAudio/coreaudio-rs

↓ 13 callersMethodcontains
Returns `true` if all of the flags in `other` are contained within `self`.
src/audio_unit/render_callback.rs:414
↓ 13 callersMethodset_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 callersMethodget
Retrieve the current state of the `ActionFlags`.
src/audio_unit/render_callback.rs:385
↓ 8 callersFunctionget_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 callersMethodstart
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 callersMethodto_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 callersMethodnext
(&mut self)
examples/sine_advanced.rs:50
↓ 6 callersMethodset_render_callback
Pass a render callback (aka "Input Procedure") to the **AudioUnit**.
src/audio_unit/render_callback.rs:475
↓ 5 callersFunctionaudio_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 callersMethodbits
The raw value of the flags currently stored.
src/audio_unit/render_callback.rs:394
↓ 5 callersMethodchannels_mut
An iterator yielding a mutable reference to each channel in the array.
src/audio_unit/render_callback.rs:182
↓ 5 callersMethodregister
Register this listener to receive notifications.
src/audio_unit/macos_helpers.rs:745
↓ 4 callersMethodas_os_status
(&self)
src/error.rs:48
↓ 4 callersMethodget_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 callersMethodinitialize
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 callersMethodsize_in_bytes
Return the size of one sample in bytes, assuming that the format is packed.
src/audio_unit/sample_format.rs:60
↓ 3 callersMethoddoes_match_flags
Check if the format flags are appropriate for the given format.
src/audio_unit/sample_format.rs:20
↓ 3 callersMethodset
(&mut self, flags: ActionFlags)
src/audio_unit/render_callback.rs:389
↓ 2 callersFunctionasbds_are_equal
Helper to check if two ASBDs are equal.
src/audio_unit/macos_helpers.rs:574
↓ 2 callersFunctionaudio_session_get_property
(id: u32)
src/audio_unit/mod.rs:489
↓ 2 callersMethodfree_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 callersMethodfree_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 callersFunctionget_audio_device_ids
()
src/audio_unit/macos_helpers.rs:199
↓ 2 callersFunctionget_audio_device_ids_for_scope
List all audio device ids on the system.
src/audio_unit/macos_helpers.rs:148
↓ 2 callersFunctionget_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 callersMethodget_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 callersFunctionget_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 callersFunctionget_supported_physical_stream_formats
Get a vector with all supported physical formats as AudioBasicRangedDescriptions.
src/audio_unit/macos_helpers.rs:589
↓ 2 callersMethodoutput_stream_format
Return the current output Stream Format for the AudioUnit.
src/audio_unit/mod.rs:354
↓ 2 callersMethodset_input_callback
Pass an input callback (aka "Input Procedure") to the **AudioUnit**.
src/audio_unit/render_callback.rs:546
↓ 2 callersMethodsize_in_bits
Return the number of valid bits for one sample.
src/audio_unit/sample_format.rs:72
↓ 2 callersMethodstream_format
Return the current Stream Format for the AudioUnit.
src/audio_unit/mod.rs:347
↓ 2 callersFunctiontoggle_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 callersMethoduninitialize
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 callersMethodunregister
Unregister this listener to stop receiving notifications.
src/audio_unit/macos_helpers.rs:792
↓ 1 callersMethodas_format_and_flag
Convert from the Rust enum to the C format and flag.
src/audio_unit/audio_format.rs:255
↓ 1 callersMethodas_mut
(&mut self)
src/audio_unit/mod.rs:371
↓ 1 callersMethodas_subtype_u32
Convert the `Type` to the const `u32` that is associated with its subtype.
src/audio_unit/types.rs:141
↓ 1 callersMethodas_u32
Convert the `Type` to its associated `u32` for compatibility with original API.
src/audio_unit/types.rs:125
↓ 1 callersFunctionaudio_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 callersFunctionfind_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 callersFunctionget_audio_device_supports_scope
does this device support input / ouptut?
src/audio_unit/macos_helpers.rs:256
↓ 1 callersFunctionget_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 callersFunctionget_device_name
Get the device name for a device id.
src/audio_unit/macos_helpers.rs:314
↓ 1 callersFunctionget_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 callersMethodinput_stream_format
Return the current input Stream Format for the AudioUnit.
src/audio_unit/mod.rs:359
↓ 1 callersMethodnext
(&mut self)
examples/sine.rs:29
↓ 1 callersMethodnext
(&mut self)
examples/apple/src/feedback.rs:40
↓ 1 callersFunctionrun_example
()
examples/apple/src/feedback.rs:47
↓ 1 callersFunctionset_device_physical_stream_format
Change the physical stream format (sample rate and format) of a device.
src/audio_unit/macos_helpers.rs:501
↓ 1 callersFunctionset_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 callersMethodstop
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
Methodalive_listener
( device_id: AudioObjectID, _n_addresses: u32, _properties: NonNull<AudioO
src/audio_unit/macos_helpers.rs:868
Methodas_ref
(&self)
src/audio_unit/mod.rs:365
Methodchannels
An iterator yielding a reference to each channel in the array.
src/audio_unit/render_callback.rs:173
Methodcopy_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
Methoddoes_stream_format_match
(_: &StreamFormat)
src/audio_unit/render_callback.rs:86
Methoddrain_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
Methoddrop
(&mut self)
src/audio_unit/mod.rs:379
Methoddrop
(&mut self)
src/audio_unit/macos_helpers.rs:717
Methodfmt
(&self, f: &mut ::std::fmt::Formatter)
src/error.rs:56
Methodfmt
(&self, f: &mut fmt::Formatter)
src/audio_unit/render_callback.rs:374
Methodfrom
(ty: EffectType)
src/audio_unit/types.rs:155
Methodfrom_asbd
(asbd: AudioStreamBasicDescription)
src/audio_unit/stream_format.rs:72
Methodfrom_flags_and_bits_per_sample
Convert format flags and bits_per_sample to a SampleFormat.
src/audio_unit/sample_format.rs:34
Methodfrom_format_and_flag
Convert from the FFI C format and flags to a typesafe Rust enum representation.
src/audio_unit/audio_format.rs:194
Methodfrom_input_proc_args
(_num_frames: u32, io_data: *mut AudioBufferList)
src/audio_unit/render_callback.rs:89
Methodfrom_os_status
(os_status: OSStatus)
src/error.rs:34
Methodfrom_ptr
Wrap the given pointer with a `Handle`.
src/audio_unit/render_callback.rs:440
Methodfrom_u32
Create an Mpeg4ObjectId from a u32.
src/audio_unit/audio_format.rs:478
Functionget_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
Functioninput_proc
Callback procedure that will be called each time our audio_unit requests audio.
src/audio_unit/render_callback.rs:766
Methodinsert
Insert the specified flags in-place.
src/audio_unit/render_callback.rs:419
Methodintersects
Returns `true` if there are flags common to both `self` and `other`.
src/audio_unit/render_callback.rs:409
Methodis_alive
Check if the device is still alive.
src/audio_unit/macos_helpers.rs:926
Methodis_all
Returns `true` if all flags are currently stored.
src/audio_unit/render_callback.rs:404
Methodis_empty
Returns `true` if no flags are currently stored.
src/audio_unit/render_callback.rs:399
Functionmain
()
examples/sine.rs:36
Functionmain
()
examples/sine_advanced.rs:57
Functionmain
()
examples/feedback.rs:22
Functionmain
()
examples/feedback_interleaved.rs:24
Methodnew
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
Methodnew
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
Methodnew
(freq: f64, volume: f64)
examples/sine.rs:18
Methodnew
(freq: f64, volume: f64)
examples/sine_advanced.rs:39
Methodnew
(sample_rate: f64, freq: f64, volume: f64)
examples/apple/src/feedback.rs:28
Methodnew_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
Methodnew_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
Methodnew_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
Methodnext
(&mut self)
src/audio_unit/render_callback.rs:138
Methodrate_listener
( device_id: AudioObjectID, _n_addresses: u32, _properties: NonNull<AudioO
src/audio_unit/macos_helpers.rs:746
Methodremove
Remove the specified flags in-place.
src/audio_unit/render_callback.rs:426
Functionrust_apple_main
()
examples/apple/src/lib.rs:4
Methodsample_rate
Get the **AudioUnit**'s sample rate.
src/audio_unit/mod.rs:316
Functionset_device_sample_rate
Change the sample rate of a device. Adapted from CPAL.
src/audio_unit/macos_helpers.rs:349
Methodset_sample_rate
Set the **AudioUnit**'s sample rate. Available** in iOS 2.0 and later.
src/audio_unit/mod.rs:310
Methodset_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
Functiontest_get_audio_device_ids
()
src/audio_unit/macos_helpers.rs:204
Functiontest_get_audio_device_ids_for_scope
()
src/audio_unit/macos_helpers.rs:240
Functiontest_get_available_sample_rates
()
src/audio_unit/macos_helpers.rs:209
next →1–100 of 102, ranked by callers