Skip to content

Commit

Permalink
refactor: Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Korilakkuma committed Jan 28, 2023
1 parent 36a8933 commit 7f1f618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SoundModule/Recorder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ export class Recorder implements Connectable {
const CHUNK_SIZE = 4 + 4;

// 1 byte * 4 ('W', 'A', 'V', 'E')
const FORM_TYPE_ID_SIZE = 4;
const FORM_TYPE_ID_SIZE = 4;

// 16 bytes (Format Tag size + Channels size + Sample rate size + BPS size + Block size + Bits per sample size)
// (+ 2 bytes if Non-PCM)
// (+ 24 bytes if extensible WAVE (ExWAVE))
const FMT_CHUNK_SIZE = CHUNK_SIZE + 16;
const FMT_CHUNK_SIZE = CHUNK_SIZE + 16;

const DATA_CHUNK_SIZE = CHUNK_SIZE + (SAMPLES * (QBITS / 8));

Expand Down

0 comments on commit 7f1f618

Please sign in to comment.