Files
XCEngine/MVS/Music fluctuations/source/hrtf/hrtf_data.h

34 lines
848 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef HRTF_DATA_H_
#define HRTF_DATA_H_
#include <string>
#include "mit_kemar_hrtf_data.h"
struct HRTFDataT {
// Data set identifier数据集的标识符
const std::string identifier;
// Number of HRTF sample points in polar coordinatesHRTF样本点的数量
const int num_hrtfs;
// Length of HRTF FIRs
const int fir_length;
//采样率。
const int sample_rate;
// Orientations as {elevation, azimuth} pairs.方向对
const int (*direction)[2];
// Distance of sound source in meters.声源距离,以米为单位
const float distance;
// HRTF data实际的HRTF数据包括左右耳的滤波器响应
const short (*data)[2][kHRTFFilterLen];
};
static const HRTFDataT kHRTFDataSet = { kHRTFDataIdentifier, kHRTFNum,
kHRTFFilterLen, kHRTFSampleRate, kHRTFDirection, kDistanceMeter, kHRTFData };
#endif