SFX and Foleys processing is done using various methods, including the following frameworks APIs & SDKs amongst others: 

FMOD Studio, Copyright © Firelight Technologies Pty, Ltd., 2012-2016

TheAmazingAudioEngine2 Copyright © 2012-2016 A Tasty Pixel

The LAME Project V 3.99