aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-24 10:05:37 -0800
committerChris Robinson <[email protected]>2019-01-24 10:05:37 -0800
commit98be1d1bf5608425cb679ab492922f1b5b925323 (patch)
treef0b377d151b98f221eefdcb91a34bd946e6eaed3 /Alc/hrtf.h
parent7757789590edf655555c96f03ce8ad1000abe1f4 (diff)
Make IncRef and DecRef member functions
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r--Alc/hrtf.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Alc/hrtf.h b/Alc/hrtf.h
index b59cd4ea..742a1812 100644
--- a/Alc/hrtf.h
+++ b/Alc/hrtf.h
@@ -35,6 +35,12 @@ struct HrtfEntry {
const ALushort *evOffset;
const ALfloat (*coeffs)[2];
const ALubyte (*delays)[2];
+
+ void IncRef();
+ void DecRef();
+
+ static constexpr inline const char *CurrentPrefix() noexcept { return "HrtfEntry::"; }
+ DEF_PLACE_NEWDEL()
};
struct EnumeratedHrtf {
@@ -84,8 +90,6 @@ struct AngularPoint {
al::vector<EnumeratedHrtf> EnumerateHrtf(const char *devname);
HrtfEntry *GetLoadedHrtf(HrtfHandle *handle);
-void Hrtf_IncRef(HrtfEntry *hrtf);
-void Hrtf_DecRef(HrtfEntry *hrtf);
void GetHrtfCoeffs(const HrtfEntry *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat spread, ALfloat (*RESTRICT coeffs)[2], ALsizei *delays);