here you can read everything how to convert an audio file from one sampling rate to another rate.
http://sox.sourceforge.net h2 read the soundInfo -> samplerate and convert automatically into the right samplerate (jack samplerate or what ever) for each playing note. this happens in realtime. if h2 do this resample process, a sample get pitched.
if you need good high quality sounds as you expected, its important that your base samples are near the audio rate you use. sox can also do a good job to convert sample rates without pitching the result.
hydrogen can not do this.
a new feature a few days old is, that hydrogen can use rubberband to fit sample length without pitching.
if you work with loops hydrogen can fit them to beats. also h2 can recalculate the length when tempo change happens. but not in realtime.