fix includes
samplerate should not be optional parameter

type of samplerate should be Integer