Go to file
Pedro de Oliveira 59cbcff192 * VocFile
- Dont panic on invalid version checksum
- Add new field to store checksum status

* BlockInfo
- New struct
- Contains start and end address of the block in the file
- Contains a get_size() function

* Block Trait
- Add a get_info() function that returns a BlockInfo

* Main
- Prettify the *info* command.
- Now shows the file version, checksum, and info about all the blocks.
2022-11-14 20:53:11 +00:00
src * VocFile 2022-11-14 20:53:11 +00:00
.gitignore Working 2022-11-13 03:16:28 +00:00
Cargo.lock Add to_bytes() to VocFile. 2022-11-13 04:49:42 +00:00
Cargo.toml Add to_bytes() to VocFile. 2022-11-13 04:49:42 +00:00
README.md First commit 2022-11-09 00:47:32 +00:00

README.md

Original Lost Eden VOC file

Voc { type: ASCII, size: 536 }
Voc { type: SoundData, size: 234941, sample_rate: 11111, audio_format: Pcm8BitUnsigned }
Voc { type: Terminator, size: 0 }

VOC file created with sox

sox pestaninhas.mp3 -r 11111 -b 8 pest.voc

Voc { type: SoundData, size: 153252, sample_rate: 11111, audio_format: Pcm8BitUnsigned }
Voc { type: Terminator, size: 0 }

VOC file created with ffmpeg

ffmpeg -i untitled.wav -ar 11111 -f s8 aids.voc

Voc { type: SoundData, size: 487, sample_rate: 11111, audio_format: Pcm8BitUnsigned }
Voc { type: SoundContinue, size: 500 }
Voc { type: SoundContinue, size: 501 }
Voc { type: SoundContinue, size: 500 }
Voc { type: SoundContinue, size: 501 }
Voc { type: SoundContinue, size: 501 }
...
...
Voc { type: SoundContinue, size: 500 }
Voc { type: SoundContinue, size: 160 }
Voc { type: SoundContinue, size: 17 }
Voc { type: Terminator, size: 0 }
Found block type 0. Exiting