diff options
author | Joursoir <chat@joursoir.net> | 2021-01-27 13:33:40 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-01-27 13:33:40 +0000 |
commit | 03693a7e4af4e5f49ffa81bbc655ed1e6816828e (patch) | |
tree | a6235d2bbf0b7983687e6a8dbd13d98b5b586105 /parecord/audio_types.c | |
parent | 075693faeaa6420de653ad6e81c2d708e354b314 (diff) | |
download | audio-tools-03693a7e4af4e5f49ffa81bbc655ed1e6816828e.tar.gz audio-tools-03693a7e4af4e5f49ffa81bbc655ed1e6816828e.tar.bz2 audio-tools-03693a7e4af4e5f49ffa81bbc655ed1e6816828e.zip |
add interaction main code with audio types; update Makefile for few source
Diffstat (limited to 'parecord/audio_types.c')
-rw-r--r-- | parecord/audio_types.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parecord/audio_types.c b/parecord/audio_types.c index 59652e0..0dd1b2f 100644 --- a/parecord/audio_types.c +++ b/parecord/audio_types.c @@ -8,14 +8,14 @@ static const struct audio_format support_formats[] = { }; struct wav_header *init_wav_header(struct wav_header *header, - uint32_t size, uint32_t subchunk1Size, uint16_t audioFormat, - uint16_t numChannels, uint32_t sampleRate, uint32_t bitsPerSample) + uint32_t size, uint16_t audioFormat, uint16_t numChannels, + uint32_t sampleRate, uint32_t bitsPerSample) { header->chunkId = 0x46464952; // = "RIFF" header->chunkSize = size - 8; header->format = 0x45564157; // = "WAVE" header->subchunk1Id = 0x20746d66; // = "fmt " - header->subchunk1Size = subchunk1Size; + header->subchunk1Size = 16; header->audioFormat = audioFormat; header->numChannels = numChannels; header->sampleRate = sampleRate; |