pub struct RustyBackendSettings {
pub soundtouch: bool,
pub file_buffer_size: ByteSize,
pub decoded_buffer_size: ByteSize,
pub output_sample_rate: u32,
}Expand description
Settings specific to the rusty backend
Fields§
§soundtouch: boolEnable or disable soundtouch; only has a effect if rusty-soundtouch is compiled-in
file_buffer_size: ByteSizeSet the buffer size for the raw file. This value will be clamped to the actual file’s size. Note this only applies to local files like music or downloaded podcasts. Does not apply to streamed podcasts or radio.
If the given value is less than the default, the default will be used instead.
decoded_buffer_size: ByteSizeSet the decoded ring buffer size.
This controls how many decoded audio bytes are stored.
Unlike file_buffer_size, this buffer will always be this size, regardless if there is less data.
Note this only applies to local files like music or downloaded podcasts. Does not apply to streamed podcasts or radio.
If the given value is less than the default, the default will be used instead.
output_sample_rate: u32Set the preferred output sample rate.
Default 48_000
Recommeded Values: 44_100, 48_000, 96_000 192_000.
Trait Implementations§
Source§impl Clone for RustyBackendSettings
impl Clone for RustyBackendSettings
Source§fn clone(&self) -> RustyBackendSettings
fn clone(&self) -> RustyBackendSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RustyBackendSettings
impl Debug for RustyBackendSettings
Source§impl Default for RustyBackendSettings
impl Default for RustyBackendSettings
Source§impl<'de> Deserialize<'de> for RustyBackendSettingswhere
RustyBackendSettings: Default,
impl<'de> Deserialize<'de> for RustyBackendSettingswhere
RustyBackendSettings: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RustyBackendSettings
impl PartialEq for RustyBackendSettings
Source§impl Serialize for RustyBackendSettings
impl Serialize for RustyBackendSettings
impl Eq for RustyBackendSettings
impl StructuralPartialEq for RustyBackendSettings
Auto Trait Implementations§
impl Freeze for RustyBackendSettings
impl RefUnwindSafe for RustyBackendSettings
impl Send for RustyBackendSettings
impl Sync for RustyBackendSettings
impl Unpin for RustyBackendSettings
impl UnwindSafe for RustyBackendSettings
Blanket Implementations§
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().