[Openal] Gain ignored by "Generic Hardware" device
Niklas Frykholm
niklas at grin.se
Tue Jan 24 06:13:45 PST 2006
dpeacock at creativelabs.com wrote:
>Hi,
>
>I just tested this, and AL_GAIN seems to be working perfectly when using
>the AL_NONE distance model on the "Generic Hardware" device on my SB
>Audigy. What version of the wrap_oal.dll are you using ? Are you
>setting any AL_MIN_GAIN or AL_MAX_GAIN levels ?
>
>
I'm sorry, I wasn't very clear. I don't get this behavior on all cards
where I run the "Generic Hardware" device. I only get it on certain
specific soundcards. Specifically, the Realtek card that I printed the
dxdiag data for in the last mail. So it's natural you don't see it on a
SB Audigy card.
The Realtek card is an on-board soundcard, I think from this motherboard:
http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=355
I've also had reports from off-site users that are having the same
problem. I don't know which soundcard they have but it is likely to be
the same or a similar card.
If it is an issue with these specific cards, I guess I could try to
detect which card the user has and switch to the Software device if he
has one of the "bad" ones. But that of course means that I would have to
compile a list of all "bad" cards which might be time consuming and/or
difficult. From my perspective, it would be better if OpenAL handled
this internally and didn't use the Hardware device if it wasn't fully
OpenAL compliant (just as it does when the hardware has fewer than 16
voices).
The version tag on the wrap_oal.dll file is 2.0.0.0. I've tried both
setting AL_MIN_GAIN=0, AL_MAX_GAIN=1 and not touching these values. I
got the bad behavior in both cases.
// Niklas
>One of my test machines ignores the gain value set with alSourcef(id,
>AL_GAIN, ...) when I use the "Generic Hardware" device. All sounds, both
>2D and 3D, are played at full volume regardless of which gain setting
>I'm using.
>
>I'm using alDistanceModel(AL_NONE).
>
>If I switch to the "Generic Software" device, gain settings work as
>expected.
>
>The sound card:
>
>-------------
>Sound Devices
>-------------
> Description: Realtek HD Audio rear output
> Default Sound Playback: Yes
> Default Voice Playback: Yes
> Hardware ID:
>HDAUDIO\FUNC_01&VEN_10EC&DEV_0880&SUBSYS_08800000&REV_0905
> Manufacturer ID: 1
> Product ID: 100
> Type: WDM
> Driver Name: RtkHDAud.sys
> Driver Version: 5.10.0000.5123 (English)
> Driver Attributes: Final Retail
> WHQL Logo'd: Yes
> Date and Size: 4/15/2005 17:05:42, 2564032 bytes
> Other Files:
> Driver Provider: Realtek Semiconductor Corp.
> HW Accel Level: Full
> Cap Flags: 0xF5F
> Min/Max Sample Rate: 100, 192000
>Static/Strm HW Mix Bufs: 33, 32
> Static/Strm HW 3D Bufs: 33, 32
> HW Memory: 0
> Voice Management: No
> EAX(tm) 2.0 Listen/Src: Yes, Yes
> I3DL2(tm) Listen/Src: Yes, Yes
>Sensaura(tm) ZoomFX(tm): No
> Registry: OK
> Sound Test Result: Not run
>
More information about the Openal
mailing list