diff options
author | Chris Robinson <[email protected]> | 2019-01-24 10:05:37 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-24 10:05:37 -0800 |
commit | 98be1d1bf5608425cb679ab492922f1b5b925323 (patch) | |
tree | f0b377d151b98f221eefdcb91a34bd946e6eaed3 /Alc/panning.cpp | |
parent | 7757789590edf655555c96f03ce8ad1000abe1f4 (diff) |
Make IncRef and DecRef member functions
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r-- | Alc/panning.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp index 9c92a166..b53e3464 100644 --- a/Alc/panning.cpp +++ b/Alc/panning.cpp @@ -885,7 +885,7 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appr if(device->FmtChans != DevFmtStereo) { if(old_hrtf) - Hrtf_DecRef(old_hrtf); + old_hrtf->DecRef(); old_hrtf = nullptr; if(hrtf_appreq == Hrtf_Enable) device->HrtfStatus = ALC_HRTF_UNSUPPORTED_FORMAT_SOFT; @@ -1025,7 +1025,7 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appr device->HrtfName = entry.name; } else if(hrtf) - Hrtf_DecRef(hrtf); + hrtf->DecRef(); } if(!device->mHrtf) @@ -1036,7 +1036,7 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appr if(!hrtf) return false; if(hrtf->sampleRate != device->Frequency) { - Hrtf_DecRef(hrtf); + hrtf->DecRef(); return false; } device->mHrtf = hrtf; @@ -1049,7 +1049,7 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appr if(device->mHrtf) { if(old_hrtf) - Hrtf_DecRef(old_hrtf); + old_hrtf->DecRef(); old_hrtf = nullptr; device->mRenderMode = HrtfRender; @@ -1074,7 +1074,7 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, HrtfRequestMode hrtf_appr no_hrtf: if(old_hrtf) - Hrtf_DecRef(old_hrtf); + old_hrtf->DecRef(); old_hrtf = nullptr; TRACE("HRTF disabled\n"); |