aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-22 09:20:50 -0800
committerChris Robinson <[email protected]>2018-12-22 09:20:50 -0800
commit87724db6e3f60ec9866b01a50e4e1e163efda28f (patch)
treec0dde16f8e0ccf25daa1147c6718a817cc7a1073 /Alc/panning.cpp
parent985d03d13dd675135250b91ee6a78b17489da1f8 (diff)
Rename a couple HRTF structs
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r--Alc/panning.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp
index e4a9d787..f15c086e 100644
--- a/Alc/panning.cpp
+++ b/Alc/panning.cpp
@@ -715,12 +715,12 @@ void InitHrtfPanning(ALCdevice *device)
device->RealOut.NumChannels = device->channelsFromFmt();
- BuildBFormatHrtf(device->HrtfHandle,
+ BuildBFormatHrtf(device->mHrtf,
device->mHrtfState.get(), device->Dry.NumChannels, AmbiPoints, AmbiMatrix,
static_cast<ALsizei>(COUNTOF(AmbiPoints)), AmbiOrderHFGain
);
- InitNearFieldCtrl(device, device->HrtfHandle->distance, device->AmbiUp ? 2 : 1,
+ InitNearFieldCtrl(device, device->mHrtf->distance, device->AmbiUp ? 2 : 1,
ChansPerOrder);
}
@@ -871,10 +871,10 @@ void ComputePanningGainsBF(const BFChannelConfig *chanmap, ALsizei numchans, con
void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appreq, HrtfRequestMode hrtf_userreq)
{
/* Hold the HRTF the device last used, in case it's used again. */
- Hrtf *old_hrtf{device->HrtfHandle};
+ HrtfEntry *old_hrtf{device->mHrtf};
device->mHrtfState = nullptr;
- device->HrtfHandle = nullptr;
+ device->mHrtf = nullptr;
device->HrtfName.clear();
device->Render_Mode = NormalRender;
@@ -1026,35 +1026,35 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appr
if(hrtf_id >= 0 && (size_t)hrtf_id < device->HrtfList.size())
{
const EnumeratedHrtf &entry = device->HrtfList[hrtf_id];
- Hrtf *hrtf{GetLoadedHrtf(entry.hrtf)};
+ HrtfEntry *hrtf{GetLoadedHrtf(entry.hrtf)};
if(hrtf && hrtf->sampleRate == device->Frequency)
{
- device->HrtfHandle = hrtf;
+ device->mHrtf = hrtf;
device->HrtfName = entry.name;
}
else if(hrtf)
Hrtf_DecRef(hrtf);
}
- if(!device->HrtfHandle)
+ if(!device->mHrtf)
{
auto find_hrtf = [device](const EnumeratedHrtf &entry) -> bool
{
- Hrtf *hrtf{GetLoadedHrtf(entry.hrtf)};
+ HrtfEntry *hrtf{GetLoadedHrtf(entry.hrtf)};
if(!hrtf) return false;
if(hrtf->sampleRate != device->Frequency)
{
Hrtf_DecRef(hrtf);
return false;
}
- device->HrtfHandle = hrtf;
+ device->mHrtf = hrtf;
device->HrtfName = entry.name;
return true;
};
std::find_if(device->HrtfList.cbegin(), device->HrtfList.cend(), find_hrtf);
}
- if(device->HrtfHandle)
+ if(device->mHrtf)
{
if(old_hrtf)
Hrtf_DecRef(old_hrtf);