pub struct SteamVoiceDecoder { /* private fields */ }Expand description
A decoder for the steam voice data
This transforms the “lightly parsed” SteamVoiceData into 16-bit PCM voice data
Implementations§
Source§impl SteamVoiceDecoder
impl SteamVoiceDecoder
pub fn new() -> Self
Sourcepub fn decode(
&mut self,
voice_data: SteamVoiceData<'_>,
output_buffer: &mut [i16],
) -> Result<usize, SteamAudioError>
pub fn decode( &mut self, voice_data: SteamVoiceData<'_>, output_buffer: &mut [i16], ) -> Result<usize, SteamAudioError>
Decode a SteamVoiceData into 16-bit PCM sound data
The raw samples are written into the provided output buffer. The number of samples written into the buffer is returned.
Trait Implementations§
Source§impl Default for SteamVoiceDecoder
impl Default for SteamVoiceDecoder
Source§fn default() -> SteamVoiceDecoder
fn default() -> SteamVoiceDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SteamVoiceDecoder
impl RefUnwindSafe for SteamVoiceDecoder
impl Send for SteamVoiceDecoder
impl !Sync for SteamVoiceDecoder
impl Unpin for SteamVoiceDecoder
impl UnwindSafe for SteamVoiceDecoder
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