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/hrtf.h | |
parent | 7757789590edf655555c96f03ce8ad1000abe1f4 (diff) |
Make IncRef and DecRef member functions
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r-- | Alc/hrtf.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |