pub struct SbcCodecInfo(/* private fields */);
Implementations§
Source§impl SbcCodecInfo
impl SbcCodecInfo
pub const BITPOOL_MIN: u8 = 2u8
pub const BITPOOL_MAX: u8 = 250u8
pub fn new( sampling_frequency: SbcSamplingFrequency, channel_mode: SbcChannelMode, block_count: SbcBlockCount, sub_bands: SbcSubBands, allocation: SbcAllocation, min_bpv: u8, max_bpv: u8, ) -> Result<Self>
pub fn to_bytes(&self) -> [u8; 4]
pub fn sub_bands(&self) -> SbcSubBands
pub fn allocation_method(&self) -> SbcAllocation
pub fn block_count(&self) -> SbcBlockCount
pub fn channel_mode(&self) -> SbcChannelMode
Sourcepub fn channel_count(&self) -> Result<usize>
pub fn channel_count(&self) -> Result<usize>
Returns the number of channels selected. Returns Error::OutOfRange if both mono and stereo are selected.
pub fn max_bitpool(&self) -> u8
Sourcepub fn sampling_frequency(&self) -> Result<u32>
pub fn sampling_frequency(&self) -> Result<u32>
Returns the sampling frequency selected, in hz. Returns Error::OutOfRange if multiple frequencies are selected.
Trait Implementations§
Source§impl Debug for SbcCodecInfo
impl Debug for SbcCodecInfo
Source§impl From<SbcCodecInfo> for ServiceCapability
impl From<SbcCodecInfo> for ServiceCapability
Source§fn from(codec_info: SbcCodecInfo) -> Self
fn from(codec_info: SbcCodecInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SbcCodecInfo
impl RefUnwindSafe for SbcCodecInfo
impl Send for SbcCodecInfo
impl Sync for SbcCodecInfo
impl Unpin for SbcCodecInfo
impl UnwindSafe for SbcCodecInfo
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
Mutably borrows from an owned value. Read more