SFML community forums

Help => Audio => Topic started by: dan24v on April 13, 2020, 12:05:00 pm

Title: Bitcrush effect
Post by: dan24v on April 13, 2020, 12:05:00 pm
How to do bitcrush sound effect to reduce bit depth from 16 to 12 bits?
Title: Re: Bitcrush effect
Post by: Hapax on April 13, 2020, 04:26:40 pm
Simply process all the samples in the sound buffer.

A simple, basic way would be to divide by 16 (4 bits) and then multiply by 16 again. This works if you work with only integers; if not, you need to round them between the divide and multiplication.

Note that this is a permanent change. If you need both, make a copy.