pub struct DelayInfo {
pub internal_delay: Option<i64>,
pub external_delay: Option<i64>,
/* private fields */
}
Expand description
Delay information as returned by the driver.
Fields§
§internal_delay: Option<i64>
The driver’s best estimate (for the chosen format) of the delay internal to the hardware it abstracts.
“Internal” refers to the hardware between the hardware interconnect (DAI) and the ring buffer (e.g. an SoC audio subsystem), whereas “external” refers to hardware on the far side of any hardware interconnect (DAI) (e.g. hardware codecs).
For a given frame during playback, this is any delay after the driver/HW copies it out of the ring-buffer, before it exits any hardware interconnect. For a given frame during recording, this is any delay after it enters the hardware interconnect, before the driver/HW copies it into the ring-buffer.
internal_delay
must be taken into account by the client when determining the requirements
for minimum lead time (during playback) and minimum capture delay (during capture).
This delay must not include the inherent delay added by the temporary buffering needed
to copy data in and out of the ring buffer, which is contained in RingBufferProperties
field driver_transfer_bytes
.
Required.
external_delay: Option<i64>
The driver’s best estimate (for the chosen format) of the delay external to the hardware it abstracts.
“External” refers to hardware on the far side of any hardware interconnect (DAI) (e.g. hardware codecs), whereas “internal” refers to hardware between the hardware interconnect (DAI) and the ring buffer (e.g. an SoC audio subsystem).
external_delay
must be taken into account by the client when determining the requirements
for minimum lead time (during playback) and minimum capture delay (during capture).
If not included, external_delay
is unknown. If unknown, a client may treat it however it
chooses (consider it zero or some large number, autodetect it, etc).
Like internal_delay
, this delay must not include the inherent delay added by the temporary
buffering needed to copy data in and out of the ring buffer, which is contained in
RingBufferProperties
field driver_transfer_bytes
.
Optional.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<DelayInfo, D> for DelayInfo
impl<D: ResourceDialect> Decode<DelayInfo, D> for DelayInfo
Source§impl TypeMarker for DelayInfo
impl TypeMarker for DelayInfo
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for DelayInfo
impl ValueTypeMarker for DelayInfo
impl Persistable for DelayInfo
impl StructuralPartialEq for DelayInfo
Auto Trait Implementations§
impl Freeze for DelayInfo
impl RefUnwindSafe for DelayInfo
impl Send for DelayInfo
impl Sync for DelayInfo
impl Unpin for DelayInfo
impl UnwindSafe for DelayInfo
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)