View Single Post
Old 07-12-2012, 09:07 PM   #156
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
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.

Last edited by geekmaster; 07-12-2012 at 09:12 PM.
geekmaster is offline   Reply With Quote