dakrk / manatools

Collection of tools for Dreamcast audio and music formats
GNU General Public License v3.0
6 stars 0 forks source link

Support importing 8-bit PCM audio for tones #27

Open dakrk opened 1 month ago

dakrk commented 1 month ago

8-bit PCM is a supported sample type by AICA, and could be good using it to save space as a middleground between ADPCM and 16-bit PCM. For importing tone data, currently libsndfile is used, and while that can read signed/unsigned 8-bit audio, there doesn't seem to be any way to be directly get those samples as the smallest type a libsndfile read function has is a short, which would be 16-bits. (And converting to and from constantly doesn't sound particularly good)