mirror of
https://github.com/GuillemCastro/spotify-dl.git
synced 2025-05-10 06:15:32 +02:00
chore: Update dependencies
This commit is contained in:
parent
11536a7aa9
commit
868826b42d
4 changed files with 298 additions and 182 deletions
|
@ -80,7 +80,7 @@ impl Sink for FileSink {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
fn write(&mut self, packet: &AudioPacket, converter: &mut Converter) -> Result<(), SinkError> {
|
||||
fn write(&mut self, packet: AudioPacket, converter: &mut Converter) -> Result<(), SinkError> {
|
||||
let data = converter.f64_to_s16(packet.samples().unwrap());
|
||||
let mut data32: Vec<i32> = data.iter().map(|el| i32::from(*el)).collect();
|
||||
self.content.append(&mut data32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue