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

34 lines
848 B
C
Raw Normal View History

#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