We need the right player "foobar2000_v1.2"
Driver - "ASIO4ALL_2_10_English"
And component for foobar to use them together - "foo_out_asio.fb2k-component"
It will not work, if not configured correctly. Also we should kill all sound related programs which may conflict.
Check if the component in the right place (picture below):
Set output device like this (picture below):
Now try play some file, i guess all outputs are muted by default, so unmute them if it looks like playing bud no sound.
Also select only one output device in the Device list. Restart Foobar after that.
Final indication if we done everything correctly (picture below):
"This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here", taken from http://www.foobar2000.org/download
So I believe, for Linux no need special installs or configurations, the sound not messed up by default.