[Openal-devel] OpenAL (Win32) + hardcoded samplerate
for DirectSound3D device
Daniel PEACOCK
dpeacock at creativelabs.com
Mon Oct 2 16:45:24 PDT 2006
Hi Paul,
> Why samplerate is hardcoded for DirectSound3D device? Why 44100?
> Could you please explain, why (for example) 48Khz or 22050
> disallowed for DirectSound3D devices?
> Is it "EAX2-limitation" or "somekind of workaround" to avoid some
> problems with Realtek based audiocards (EAX2-compatible chipsets)?
There is no way to tell what the actual *output* frequency is from a
DirectSound3D Hardware device. Different audio devices will mix to
44100Hz, 48000Hz, or even higher. On most audio cards you cannot change
the output frequency of the mixer (whether it is hardware or software).
The 44100Hz value is returned from alcGetIntegerv because the actual true
value cannot be determined.
NOTE - this does *not* mean that you can only playback 44100Hz samples.
You can playback a large range of frequencies and adjust the pitch
on-the-fly when playing samples.
Dan
More information about the Openal-devel
mailing list