LIJI32 / GBVideoPlayer2

A new version of GBVideoPlayer with higher resolution, 3-bit stereo PCM audio and video compression
MIT License
95 stars 15 forks source link

mono sound #7

Closed T0biasCZe closed 2 years ago

T0biasCZe commented 2 years ago

Could you add ability to use mono sound instead of stereo? Mono sound instead of stereo would half the audio size, to further lower it, 2bit sound would also be nice... (since 2bit is still listenable)

LIJI32 commented 2 years ago

Reducing the sample bit depth will not have an effect on file size. A single stereo sample is stored as a single byte, where each nibble contains either a right or left sample. Reducing the bit depth will require bit packing to actually benefit from it, and the CPU usage is too tight for this. Audio size is already extremely minimal compared to video size, being around 19 times smaller than video data (compression aside).