Fix for DMF 27
parent
8add785d78
commit
029b7d654a
|
@ -582,6 +582,11 @@ impl DmfModule {
|
||||||
invalid => return Err( format!( "invalid file: invalid bitrate {}", invalid ) )?
|
invalid => return Err( format!( "invalid file: invalid bitrate {}", invalid ) )?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Fast forward 8 bytes in the DMF stream
|
||||||
|
// (I have no idea what these fields are used for)
|
||||||
|
skip( bytes.by_ref(), 8 );
|
||||||
|
|
||||||
let mut sample = Sample { name, rate, pitch, amp, bitrate, data: Vec::new() };
|
let mut sample = Sample { name, rate, pitch, amp, bitrate, data: Vec::new() };
|
||||||
|
|
||||||
println!( "{}:\t{:?}", i, sample );
|
println!( "{}:\t{:?}", i, sample );
|
||||||
|
@ -591,9 +596,6 @@ impl DmfModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
samples.push( sample );
|
samples.push( sample );
|
||||||
|
|
||||||
// Fast forward 8 bytes that are unused at the end of the sample
|
|
||||||
skip( bytes.by_ref(), 8 );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(
|
Ok(
|
||||||
|
|
Loading…
Reference in New Issue