Playing wavs on the speaker is not trivial.
It is much easier if you just use #ifdef sections with platform dependent code.