diff options
author | Chris Robinson <[email protected]> | 2009-07-06 03:09:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-07-06 03:09:01 -0700 |
commit | 0ac9e57d28cd0216d3b5cf8fe520a62235006a3a (patch) | |
tree | be9a6ed693175c4eb66b682f53bd03d8779d7275 /Alc/ALu.c | |
parent | 5460e85c40b1883b91ca763b88dc014f0d64b705 (diff) |
Store the requested mono/stereo source count and sends in the device
Although the properties are set as context attributes, they are queried from
the device. If multiple contexts per device are ever supported, it would not
be straight forward about where to read the values from. This way, the
attributes can be treated as device-specific attributes that are updated when
a new context is created.
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -427,7 +427,7 @@ static ALvoid CalcSourceParams(const ALCcontext *ALContext, DopplerFactor = ALContext->DopplerFactor * ALSource->DopplerFactor; DopplerVelocity = ALContext->DopplerVelocity; flSpeedOfSound = ALContext->flSpeedOfSound; - NumSends = ALContext->NumSends; + NumSends = ALContext->Device->NumAuxSends; //Get listener properties ListenerGain = ALContext->Listener.Gain; |