From 7744e4ff72def926a26feca391170d25df39c469 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 20 Dec 2018 13:26:39 -0800 Subject: Pass RealMixParams by reference instead of pointer --- OpenAL32/Include/alMain.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenAL32') 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); -- cgit v1.2.3