How to get the best sound out of your PC

Chesky records, a small record label, produces what is called audiophile friendly music. To learn how to create music with this high detail and how to play it right, just read some of their articles. There is a lot of talk there on tube amps and stereo mics and horn speakers etc. Forget the high-end gear, there is one complete article on how to set up your power supply for best audio experience. But mere mortals like us listen to the music on our PCs. Though it does not even begin to compare with all that exotic gear out there, it can be set up to deliver a surprisinlgy good quality sound.This is a highly simplified diagram of how the music flows:
mp3 file –> mp3 decoder –> processor –> soundcard –> speakers –> Ears


Each one of these stages has to be optimized if you want the best quality sound. If the mp3 file is low-bit rate to begin with, no amount of tweaking can make it sound lush and full. Or if you are using tin boxes for speakers, even a SACD would sound crappy on them. One weak link in the chain and there goes your listening experience.


Input:
MP3 technology was developed by Fraunhoffer Institute in Germany. They also provide software to encode/decode MP3 files and that is what is used in winamp by default. But these official decoders are not the best sounding ones. That honor goes to an open source (surprise! surprise!) decoder called mpg123. It supports ReplayGain and 24-bit output, both of which are lacking from the official decoder. The difference in quality may not be that apparent on ordinary songs but this plugin really shines when the MP3 file contains a lot of detail.

To use this plugin, Just copy the file ‘in_mpg123.dll’ to ‘C:\Program Files\Winamp\Plugins’ and launch winamp. Then under Preferences->input, choose mpg123 and double click on it to set its properties. Under Decoder tab, check ‘Enable’ and choose output format as ’16 bit’ (or ’24 bit’ if your sound card supports it). Under Replay Gain tab, check ‘Enable’, choose ‘Album gain’, and choose ‘Hard Limiter’. ReplayGain will make sure that all the songs play back at the same loudness, thus freeing you from changing the volume for different songs which had been mastered at different levels. No changes are made by ReplayGain to the original MP3 file. It just puts a tag on the file which is used by the decoder to decide whether to amplify or attenuate.

An alternative MP3 decoder called MAD also has a lot of following. There is no conclusive evidence that it is better than mpg123 but arguments go on.

PS – The official mp3 encoder is also not the best one out there! That honor goes (again) to an open source encoder called LAME.


Processing:
After a mp3 file gets decoded, it is fed to a Windows component called kmixer. It does exactly what its name implies – it mixes all the audio streams being fed to it and sends them to the soundcard. This is how we can hear those annoying Windows event sounds alongwith “sweet home alabama”. If this were the only thing that kmixer was doing, it won’t be so bad except that the kmixer resamples everything, just to make it easier for it to mix all those audio streams. It also fiddles with signal to noise ratio and does many other undesirable things. The end result is that the audio stream comes out sounding very flat and dull. So we need to find a way to bypass this mixer thing and send the audio stream directly to the soundcard. Enter kernel streaming.


Download this plugin and just copy it to ‘C:\Program Files\Winamp\Plugins’. Then choose ‘kernel streaming’ under Output preferences. There are no settings for this plugin (as yet). Since it bypasses the kmixer, the winamp volume control won’t work with this plugin. You have to use that little speaker icon in the task bar. This is also way too loud at normal volumes, so keep the volume to a minimum when you try it for the first time. In some cases, when you double click on a file after choosing kernel streaming, the winmap might quit. This is normal. Just relaunch the winamp and it should run fine from there on.


Output:
This section applies only if you have Creative soundcard or a soundcard based on 10K2 chipset.
After a mp3 files gets decoded by winamp, it gets fed to soundcard drivers. These drivers make sense of this audio data and convert it to a format suitable for the soundcard to play. But the drivers supplied by Creative are a bit crappy and bloated. So head over to kxproject homepage and download these drivers. These drivers have a cleaner sound ouput and are much more stable than the stock ones. You also gain much more control over your soundcard settings.


Ears:
Finally, the most critical link in the sound quality chain – the ears. If you cannot tell the difference between an MP3 file and the original CD it was encoded from, don’t despair. Most people can’t. It takes time and practice and a really good audio setup to hone the listening skills. I leave you here with some commentary from an audiophile who does not just hear music, but actually listens to it. Be inspired!


Credits:
The article that made me interested in all this fiddling is here. It deals specifically with foobar2000 but the concepts are same. Infact foobar2000 comes with kernel streaming preloaded. If you can stand its UI, it is said to be the best audio player around.

Manish Bansal is a mainframe programmer by day and PC junkie by night. His other hobbies are Graphology and Photography.


If you would like to see your thoughts or experiences with technology published, please consider writing an article for OSNews.

76 Comments

  1. 2005-04-17 4:55 am
  2. 2005-04-17 5:00 am
  3. 2005-04-17 5:00 am
  4. 2005-04-17 5:04 am
  5. 2005-04-17 5:34 am
  6. 2005-04-17 6:19 am
  7. 2005-04-17 6:37 am
  8. 2005-04-17 6:54 am
  9. 2005-04-17 6:57 am
  10. 2005-04-17 7:28 am
  11. 2005-04-17 7:31 am
  12. 2005-04-17 7:32 am
  13. 2005-04-17 7:35 am
  14. 2005-04-17 8:23 am
  15. 2005-04-17 8:37 am
  16. 2005-04-17 9:03 am
  17. 2005-04-17 9:34 am
  18. 2005-04-17 9:47 am
  19. 2005-04-17 9:59 am
  20. 2005-04-17 10:01 am
  21. 2005-04-17 10:02 am
  22. 2005-04-17 10:11 am
  23. 2005-04-17 10:17 am
  24. 2005-04-17 10:36 am
  25. 2005-04-17 10:51 am
  26. 2005-04-17 11:01 am
  27. 2005-04-17 11:11 am
  28. 2005-04-17 11:33 am
  29. 2005-04-17 11:35 am
  30. 2005-04-17 11:41 am
  31. 2005-04-17 11:46 am
  32. 2005-04-17 11:49 am
  33. 2005-04-17 12:06 pm
  34. 2005-04-17 12:11 pm
  35. 2005-04-17 12:14 pm
  36. 2005-04-17 12:27 pm
  37. 2005-04-17 12:30 pm
  38. 2005-04-17 12:48 pm
  39. 2005-04-17 12:50 pm
  40. 2005-04-17 1:40 pm
  41. 2005-04-17 1:43 pm
  42. 2005-04-17 1:51 pm
  43. 2005-04-17 2:16 pm
  44. 2005-04-17 2:18 pm
  45. 2005-04-17 3:19 pm
  46. 2005-04-17 3:28 pm
  47. 2005-04-17 4:46 pm
  48. 2005-04-17 5:08 pm
  49. 2005-04-17 5:12 pm
  50. 2005-04-17 5:17 pm
  51. 2005-04-17 5:36 pm
  52. 2005-04-17 6:03 pm
  53. 2005-04-17 7:35 pm
  54. 2005-04-17 8:09 pm
  55. 2005-04-17 8:09 pm
  56. 2005-04-17 8:10 pm
  57. 2005-04-17 8:14 pm
  58. 2005-04-17 8:31 pm
  59. 2005-04-17 8:38 pm
  60. 2005-04-17 8:49 pm
  61. 2005-04-17 9:21 pm
  62. 2005-04-17 9:40 pm
  63. 2005-04-17 9:47 pm
  64. 2005-04-17 9:57 pm
  65. 2005-04-17 10:03 pm
  66. 2005-04-17 11:31 pm
  67. 2005-04-18 12:03 am
  68. 2005-04-18 2:50 am
  69. 2005-04-18 2:55 am
  70. 2005-04-18 4:58 am
  71. 2005-04-18 6:29 am
  72. 2005-04-18 7:35 am
  73. 2005-04-18 10:54 am
  74. 2005-04-18 11:01 pm
  75. 2005-04-19 4:54 am
  76. 2005-04-19 9:14 am