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