securityos/node_modules/music-metadata/lib/dsdiff/DsdiffToken.js

22 lines
599 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChunkHeader64 = void 0;
const Token = require("token-types");
const FourCC_1 = require("../common/FourCC");
/**
* DSDIFF chunk header
* The data-size encoding is deviating from EA-IFF 85
* Ref: http://www.sonicstudio.com/pdf/dsd/DSDIFF_1.5_Spec.pdf
*/
exports.ChunkHeader64 = {
len: 12,
get: (buf, off) => {
return {
// Group-ID
chunkID: FourCC_1.FourCcToken.get(buf, off),
// Size
chunkSize: Token.INT64_BE.get(buf, off + 4)
};
}
};