本文整理汇总了C++中FileIO::readBigEndian方法的典型用法代码示例。如果您正苦于以下问题:C++ FileIO::readBigEndian方法的具体用法?C++ FileIO::readBigEndian怎么用?C++ FileIO::readBigEndian使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileIO
的用法示例。
在下文中一共展示了FileIO::readBigEndian方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: soundReadSample64F_B
double soundReadSample64F_B(FileIO& soundfile) {
double sample;
soundfile.readBigEndian(sample);
return sample;
}
示例2: soundReadSample32L_B
double soundReadSample32L_B(FileIO& soundfile) {
int32_t sample;
soundfile.readBigEndian(sample);
return (double)sample / (uint32_t)0x80000000;
}
示例3: soundReadSample32F_B
double soundReadSample32F_B(FileIO& soundfile) {
float sample;
soundfile.readBigEndian(sample);
return (double)sample;
}
示例4: soundReadSample8M_B
double soundReadSample8M_B(FileIO& soundfile) {
uint8_t sample;
soundfile.readBigEndian(sample);
return mulaw8ToLinear16(sample) / (int32_t)0x8000;
}
示例5: soundReadSample32L_B
double soundReadSample32L_B(FileIO& soundfile) {
long sample;
soundfile.readBigEndian(sample);
return (double)sample / (ulong)0x80000000;
}
示例6: soundReadSample16L_B
double soundReadSample16L_B(FileIO& soundfile) {
short sample;
soundfile.readBigEndian(sample);
return (double)sample / (long)0x8000;
}
示例7: soundReadSample8L_B
double soundReadSample8L_B(FileIO& soundfile) {
char sample;
soundfile.readBigEndian(sample);
return (double)sample / (long)0x80;
}
示例8: soundReadSample8M_B
double soundReadSample8M_B(FileIO& soundfile) {
uchar sample;
soundfile.readBigEndian(sample);
return mulaw8ToLinear16(sample) / (long)0x8000;
}