Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Bitcrush effect  (Read 3711 times)

0 Members and 1 Guest are viewing this topic.

dan24v

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Bitcrush effect
« on: April 13, 2020, 12:05:00 pm »
How to do bitcrush sound effect to reduce bit depth from 16 to 12 bits?

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Bitcrush effect
« Reply #1 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.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything