* src/wave: Changed into a template class, no need to the sample resolution.