Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/wa.picotech.app/public_html/node_modules/music-metadata/lib/dsf/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormatChunk = exports.ChannelType = exports.DsdChunk = exports.ChunkHeader = void 0;
const Token = require("token-types");
const FourCC_1 = require("../common/FourCC");
/**
* Common chunk DSD header: the 'chunk name (Four-CC)' & chunk size
*/
exports.ChunkHeader = {
len: 12,
get: (buf, off) => {
return { id: FourCC_1.FourCcToken.get(buf, off), size: Token.UINT64_LE.get(buf, off + 4) };
}
};
/**
* Common chunk DSD header: the 'chunk name (Four-CC)' & chunk size
*/
exports.DsdChunk = {
len: 16,
get: (buf, off) => {
return {
fileSize: Token.INT64_LE.get(buf, off),
metadataPointer: Token.INT64_LE.get(buf, off + 8)
};
}
};
var ChannelType;
(function (ChannelType) {
ChannelType[ChannelType["mono"] = 1] = "mono";
ChannelType[ChannelType["stereo"] = 2] = "stereo";
ChannelType[ChannelType["channels"] = 3] = "channels";
ChannelType[ChannelType["quad"] = 4] = "quad";
ChannelType[ChannelType["4 channels"] = 5] = "4 channels";
ChannelType[ChannelType["5 channels"] = 6] = "5 channels";
ChannelType[ChannelType["5.1 channels"] = 7] = "5.1 channels";
})(ChannelType = exports.ChannelType || (exports.ChannelType = {}));
/**
* Common chunk DSD header: the 'chunk name (Four-CC)' & chunk size
*/
exports.FormatChunk = {
len: 40,
get: (buf, off) => {
return {
formatVersion: Token.INT32_LE.get(buf, off),
formatID: Token.INT32_LE.get(buf, off + 4),
channelType: Token.INT32_LE.get(buf, off + 8),
channelNum: Token.INT32_LE.get(buf, off + 12),
samplingFrequency: Token.INT32_LE.get(buf, off + 16),
bitsPerSample: Token.INT32_LE.get(buf, off + 20),
sampleCount: Token.INT64_LE.get(buf, off + 24),
blockSizePerChannel: Token.INT32_LE.get(buf, off + 32)
};
}
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]-- |