Copyright | (c) Robert Massaioli, 2014 |
---|---|
License | MIT |
Maintainer | robertmassaioli@gmail.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides some common operations that you might like to perform on RIFF files. This is by no means an exhaustive list but you may find it useful. This is meant to be a collection of common methods to make your development time shorter.
Documentation
calculateFileLength :: RiffFile -> RiffChunkSize Source
Calculates the size that should be in the ChunkSize location of the RiffFile when it has been written out to disk. If you want to get the true file size of a Riff file once it has been written out to disk then you need to use the trueFileSize function.
:: RiffChunk | The RIFF chunk whose size should be calculated. |
-> RiffChunkSize | The size of the data portion of that chunk no disk. |
Calculates the size of this chunk such that you could place that size in the ChunkSize section of that chunk in a RIFF file that you wrote to disk.