music-metadata
Version:
Music metadata parser for Node.js, supporting virtual any audio and tag format.
17 lines • 432 B
JavaScript
import * as Token from 'token-types';
import { FourCcToken } from '../common/FourCC.js';
/**
* Common AIFF chunk header
*/
export const Header = {
len: 8,
get: (buf, off) => {
return {
// Chunk type ID
chunkID: FourCcToken.get(buf, off),
// Chunk size
chunkSize: Number(BigInt(Token.UINT32_BE.get(buf, off + 4)))
};
}
};
//# sourceMappingURL=index.js.map