mirror of
https://github.com/RustAudio/rodio
synced 2025-03-04 15:07:18 +00:00
Fix vorbis player outputting nothing
This commit is contained in:
parent
323cd7af29
commit
b86d1ff48c
1 changed files with 3 additions and 3 deletions
|
@ -45,15 +45,15 @@ impl VorbisDecoder {
|
|||
|
||||
impl Decoder for VorbisDecoder {
|
||||
fn write(&mut self) {
|
||||
let (min, _) = self.reader.size_hint();
|
||||
/*let (min, _) = self.reader.size_hint();
|
||||
|
||||
if min == 0 {
|
||||
// finished
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
{
|
||||
let mut buffer = self.voice.append_data(min);
|
||||
let mut buffer = self.voice.append_data(32768);
|
||||
conversions::convert_and_write(self.reader.by_ref(), &mut buffer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue