Alsa test: reworked implementation from c-style to class based