aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-20 13:26:39 -0800
committerChris Robinson <[email protected]>2018-12-20 13:26:39 -0800
commit7744e4ff72def926a26feca391170d25df39c469 (patch)
treec7e92ed0daab3bd55944d7042c43ae3f667d9b7b /OpenAL32
parent9fde260df9237cd99967a816332be31ce1524770 (diff)
Pass RealMixParams by reference instead of pointer
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index a2666435..daafaad1 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -906,8 +906,8 @@ inline ALint GetChannelIndex(const Channel (&names)[MAX_OUTPUT_CHANNELS], Channe
* Returns the index for the given channel name (e.g. FrontCenter), or -1 if it
* doesn't exist.
*/
-inline ALint GetChannelIdxByName(const RealMixParams *real, enum Channel chan)
-{ return GetChannelIndex(real->ChannelName, chan); }
+inline ALint GetChannelIdxByName(const RealMixParams &real, Channel chan)
+{ return GetChannelIndex(real.ChannelName, chan); }
void StartEventThrd(ALCcontext *ctx);