/riff_wav

Primary LanguagePython

RIFF Wave File

Create a RIFF file representation of a wave file. The __str__ method is implemented to print out a helpful visual representation of the contents of the riff file. The Goal of is to allow easy visualization and bit manipulation of wav files.

-----------------------------------------------------
| ID: b'RIFF' | Body Size: 2354976 | Format: b'WAVE'|
-----------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------
| ID: b'fmt ' | Body Size: 16 | Format: b'\x01' | Channels: 2 | Samples/second: 44100 | bytes/second: 176400 | bytes/sample frame: 4 | bits/sample 16 |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| ID: b'\x01\x00\x02\x00' | Body Size: 44100 | BYTES OF DATA |
--------------------------------------------------------------

Definitely a Work In Progress.

Further Reading

Multimedia Programming Interface and Data Specifications 1.0