Its not as important as something like the gameplayf or story/characters (this depends on genre) but it does have a factor.
The thing about soundtrack is that, if its really bad, it makes the game unplayable. Exceptions are portable games, which I usualy play without sound. As long as its ok, I'm fine. Of course, the better it is, the more I'll like the game 







