diff options
author | Chris Robinson <[email protected]> | 2019-10-24 14:33:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-10-24 14:33:43 -0700 |
commit | 7bed2fe7ccd2abaa090a4096bad56f220ce1565e (patch) | |
tree | eb4cb96703fd2c83a2d24da76b9eab9d22d37e28 /alc | |
parent | f40e69f9e3ee0020f3981120e1ce58cad37db746 (diff) |
Report the real ambisonic order set for HRTF rendering
Diffstat (limited to 'alc')
-rw-r--r-- | alc/panning.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/alc/panning.cpp b/alc/panning.cpp index 3f42e783..aa30a71c 100644 --- a/alc/panning.cpp +++ b/alc/panning.cpp @@ -627,11 +627,12 @@ void InitHrtfPanning(ALCdevice *device) ambi_order = iter->order; } } - TRACE("%s HRTF rendering enabled, using \"%s\"\n", - (device->mRenderMode == HrtfRender) ? "Full" : - (ambi_order >= 3) ? "Third-Order" : - (ambi_order == 2) ? "Second-Order" : - (ambi_order == 1) ? "First-Order" : "Unknown", + TRACE("%u%s order %sHRTF rendering enabled, using \"%s\"\n", ambi_order, + (((ambi_order%100)/10) == 1) ? "th" : + ((ambi_order%10) == 1) ? "st" : + ((ambi_order%10) == 2) ? "nd" : + ((ambi_order%10) == 3) ? "rd" : "th", + (device->mRenderMode == HrtfRender) ? "+ Full " : "", device->HrtfName.c_str()); if(ambi_order >= 3) |