11 Commits
Author SHA1 Message Date
Sam Byass d9df2cbcc1 [publish] Bump deps, fix compilation warnings, update TFMs bump to 3.1.0
TFM changes should not be a breaking change - no support should be dropped.
2026-02-15 18:30:36 +00:00
tbodt 99162210e5 Fix generating audio files that are a teeny tiny bit longer than the original (#16)
* Respect SampleCount metadata when rebuilding ogg files

Since Vorbis blocks are always one of two possible sizes, a Vorbis
container needs some other field to hold the actual number of samples in
the audio file. This change essentially copies the SampleCount FSB
metadata field to the ogg output.

* Respect SampleCount metadata when rebuilding wav files

FSB PCM files appear to be padded with zeroes, meaning the correct
number of samples to copy is the SampleCount value instead of just the
rest of the file.
2026-02-15 18:19:07 +00:00
Sam Byass 564ac6fa9e Fix exception for ogg packets with only one block flag 2022-07-04 19:09:37 +01:00
Sam Byass 44c8d5ccea Codebase Cleanup/Restructure 2022-07-04 15:20:41 +01:00
Sam Byass 519121fe67 General cleanup:
- Use Json serialization context/code gen
- Allow trimming
- Fix LoadFsbFromByteArray not being thread-safe
2022-07-04 15:14:47 +01:00
Sam Byass d9aec6fb7e Use custom vorbis decoder (based on @lab313ru's work)
This also allows us to target netstandard2 by removing the dep on OggVorbisSharp
2022-07-04 14:54:47 +01:00
Sam Byass 126139719a Add support for IMAADPCM 2021-09-20 12:11:58 +01:00
Sam Byass acba2bc17a Add support for GcAdPcm 2021-09-19 13:21:46 +01:00
Sam Byass a911709cda Add support for PCM rebuilding, and Sample#RebuildAsStandardFileFormat 2021-09-19 10:50:01 +01:00
Sam Byass 6fc5c5df0c Add a test of a much larger file 2021-08-15 04:10:02 +01:00
Sam Byass 005c055a9d Initial commit 2021-08-15 04:06:23 +01:00