summaryrefslogtreecommitdiff
path: root/wav.h
blob: d5e26cb0861809a7e71969fb667fab8d02d582ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <stdint.h>

struct wav_header {
  char riff_magic[4];
  uint32_t size;
  char wave_magic[4];
  char format_magic[4];
  uint32_t format_size;
  uint16_t format_type;
  uint16_t channels;
  uint32_t sample_rate;
  uint32_t rate1;
  uint16_t rate2;
  uint16_t bits_per_sample;
  char data_magic[4];
  uint32_t data_size;
};