Deps: Update to Audiopus v0.3.0-rc.0 (#125)

Tested using `cargo make ready`.

Co-authored-by: André Vennberg <andre.vennberg@gmail.com>
This commit is contained in:
Kyle Simpson
2022-04-24 11:55:56 +01:00
parent d3a40fe691
commit 4eb95d4b59
5 changed files with 32 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ use error::{Error, Result};
use tokio::runtime::Handle;
use std::{
convert::TryFrom,
convert::{TryFrom, TryInto},
io::{
self,
Error as IoError,
@@ -233,8 +233,8 @@ impl Input {
let samples = decoder
.decode_float(
Some(&opus_data_buffer[..seen]),
&mut decoder_state.current_frame[..],
Some((&opus_data_buffer[..seen]).try_into().unwrap()),
(&mut decoder_state.current_frame[..]).try_into().unwrap(),
false,
)
.unwrap_or(0);