mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 08:50:44 +00:00
Merge branch 'master' of https://github.com/iluvcapra/bwavfile
This commit is contained in:
3
examples/blits.rs
Normal file
3
examples/blits.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() -> () {
|
||||
|
||||
}
|
||||
3
examples/bwavefile_probe.rs
Normal file
3
examples/bwavefile_probe.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() -> () {
|
||||
|
||||
}
|
||||
@@ -207,6 +207,8 @@ pub struct WaveWriter<W> where W: Write + Seek {
|
||||
pub format: WaveFmt
|
||||
}
|
||||
|
||||
const DS64_RESERVATION_LENGTH : u32 = 96;
|
||||
|
||||
impl WaveWriter<File> {
|
||||
|
||||
/// Create a new Wave file at `path`.
|
||||
@@ -232,7 +234,8 @@ impl<W> WaveWriter<W> where W: Write + Seek {
|
||||
|
||||
retval.increment_form_length(4)?;
|
||||
|
||||
retval.write_junk(96)?;
|
||||
// write ds64_reservation
|
||||
retval.write_junk(DS64_RESERVATION_LENGTH)?;
|
||||
|
||||
let mut chunk = retval.chunk(FMT__SIG)?;
|
||||
chunk.write_wave_fmt(&format)?;
|
||||
|
||||
Reference in New Issue
Block a user