Troubles with OGG

I try to play OGG file but experience following troubles:
- strange mechanism of resampling.
On config I set 22050Hz and 16BPS. I open 22050Hz 16BPS file so it must be played as it is, but for some reason it treated as 11025Hz. And on 22050Hz in config the speed of playing is doubled. If I set 11025Hz in config it is played at normal speed.
- at the end of file sound turns into noise and creaks for about 1 second and then access violation exception occures (maybe this is because wrong frequency treatment?).
- strange mechanism of resampling.
On config I set 22050Hz and 16BPS. I open 22050Hz 16BPS file so it must be played as it is, but for some reason it treated as 11025Hz. And on 22050Hz in config the speed of playing is doubled. If I set 11025Hz in config it is played at normal speed.
- at the end of file sound turns into noise and creaks for about 1 second and then access violation exception occures (maybe this is because wrong frequency treatment?).