c sound gen test code