If your system has ASIO drivers, like from an external audio interface, then you need to tell Sonar to use a driver mode of ASIO, and also make sure the Sample Rate in Sonar matches the one for the interface.
If you are instead using some built-in sound card, then you may want to consider buying an external audio interface.
Bob Bone