Win32 SDL sound frequency

When I try playing back a sound at 10000 hz on win32 SDL it comes out at
a much higher frequency. If I switch it to 11025, ie CD rate/4, it works but
isn’t the frequency I wanted (which was 10000). What gives? Are we given
freedom of frequency only so long as it is a factor of 44100?

Works fine at 10000 under linux of course.

Then there is the whole business of O_BINARY on opening files. Real hassle,
especially since no one defines O_BINARY to 0 on linux. Yet another case of
#if !defined(WIN32)
#define O_BINARY 0