Allow sample buff & frequency configuration from #defines

Broke out some hard-coded attributes to be configurable on a #define
level. Performed some more testing and the code now works well (ish) for
a 8bit 32kHz mono wav file. :)