Passed
Push — master ( 117406...d21d52 )
by Rafael S.
01:41
created

src/bwf-header.js   A

Size

Lines of Code 40

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
nc 1
dl 0
loc 40
rs 10
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
B bwf-header.js ➔ ??? 0 30 1
1
/*
2
 * BWFHeader class
3
 * Copyright (c) 2017-2018 Rafael da Silva Rocha.
4
 * https://github.com/rochars/wavefile
5
 *
6
 */
7
8
const WaveFileHeader = require("../src/wavefile-header");
9
10
/**
11
 * Wave file headers.
12
 */
13
class BWFHeader extends WaveFileHeader {
14
15
    constructor() {
16
        super();
17
        /**
18
         * "bext"
19
         * @type {string}
20
         */
21
        this.bextChunkId = "";
22
        /** @type {number} */
23
        this.bextChunkSize = 0;
24
        /** @type {!Array<number>} */
25
        this.bextChunkData = [];
26
        /** @type {Object} */
27
        this.bextChunkFields = {
28
            "description": "", //256
29
            "originator": "", //32
30
            "originatorReference": "", //32
31
            "originationDate": "", //10
32
            "originationTime": "", //8
33
            "timeReference": "", //64-bit value
34
            "version": "", //WORD
35
            "UMID": "", // 64
36
            "loudnessValue": "", //WORD
37
            "loudnessRange": "", //WORD
38
            "maxTruePeakLevel": "", //WORD
39
            "maxMomentaryLoudness": "", //WORD
40
            "maxShortTermLoudness": "", //WORD
41
            "reserved": "", //180
42
            "codingHistory": "" // string, unlimited
43
        };
44
    }
45
}
46
47
module.exports = BWFHeader;
48