Arduino Due and playing music on a speaker

I tried to use the tone() function with the Due and it wouldn't compile. Is there any other way that could make the Due utilize a speaker?

Thanks for your help.

I would also like to add that I will be playing .wav files from the native usb port with a usb stick so if anybody knows how that might work then any help would be great!

I found this: Audio - Arduino Reference