diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2009-07-06 03:09:01 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2009-07-06 03:09:01 -0700 |
commit | 0ac9e57d28cd0216d3b5cf8fe520a62235006a3a (patch) | |
tree | be9a6ed693175c4eb66b682f53bd03d8779d7275 /OpenAL32/Include | |
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 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index fee0c315..6f8ab595 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -182,6 +182,10 @@ struct ALCdevice_struct // Maximum number of slots that can be created ALuint AuxiliaryEffectSlotMax; + ALint lNumMonoSources; + ALint lNumStereoSources; + ALuint NumAuxSends; + // Context created on this device ALCcontext *Context; @@ -221,11 +225,6 @@ struct ALCcontext_struct ALfloat DopplerVelocity; ALfloat flSpeedOfSound; - ALint lNumMonoSources; - ALint lNumStereoSources; - - ALuint NumSends; - ALfloat PanningLUT[OUTPUTCHANNELS * LUT_NUM]; ALint NumChan; |