Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Resample changes the sample rate of the input to any other positive sample rate.

// Bah.wav may have a sample rate of 44100
Audio bah( "Bah.wav" ); 

// Bar will sound exactly the same as bah, but with more samples per second.
Audio bar = bah.resample( 48000 );