This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| rsf2wav converts Relentless Software RSF streamed audio to at3 or wav. RSF likely stands for "Relentless Streaming Format" | |
| RSF is the streamed music container used by Buzz! Quiz TV and related titles. It is a 32 byte big endian header repeated at the start of every 64 KiB block, wrapping raw Sony ATRAC3 (this is NOT ATRAC3plus, and NOT scrambled) | |
| header layout, big endian: | |
| 0x00 u8 format tag, always 6 so far | |
| 0x02 u8 channel count | |
| 0x04 u16 sample rate |