Thanks for the replies. To clarify one thing, as I said, I can see the green signal bar in the audio track moving (further to the right the louder it is) with each note I play. Since this means Sonar is "hearing" (receiving) the sound ok from the sound card, then the problem can't be with the sound card, sampling rate, ASIO driver, or Windows sound input settings, right? Otherwise, I would see no signal. Or am I missing something (it wouldn't be the first time!).
The wav file gets created ok in the project folder, and there's no sound when I play it. The other wav files and their clips that I recorded previously still sound ok.
Is it possible to see the input signal from the sound card, but it's garbled and so gibberish goes into the wav file, producing no sound?
In Control Panel -> Sounds, my default input is Line In, which is my sound card.
I don't see any 'output is assigned to silent output' message or other popup. I still have it assigned to Xonar Essence STX ASIO(64) L.
MusicJohnnie mentioned a possible routing problem in Sonar - how does that work, and is it possible to troubleshoot?