BTW, I had problems with your "condensed" program on both my DX and my K5. My WAV files were probably the wrong format.
I have condensed the "pcm_min.c" demo from the ALSA Project website, and it works fine playing random noise (and about the same size as your demo). That code will also be a better fit to squeeze into my gmplay code, and lets me control the sound paramaters where I can see and control them in a way that suits my style.
I could swear that some of those "spacey" coding styles were made for people who get paid for number of lines of code delivered, not for performance or functionality. The experts can pack more functions into less code, so LOC (Lines Of Code) is not really a valid productivity measurement anyway. And it is so easy to run though a reformatter for others, so I feel no guilt publishing it the way I like to use it.
I really DO understand condensed code much faster and better than "formatted" code. Even just to study other peoples code, I condense it just so I can understand it better. I look for "functional patterns" in it, which I cannot see when I have to page through it.