Skip to content

Commit

Permalink
rtl_fm-streamer: fix block alignment in WAVHeaderStereo
Browse files Browse the repository at this point in the history
For 16-bit PCM format stereo audio, the block alignment value is 4.
  • Loading branch information
athoik committed Apr 16, 2020
1 parent f3a1b86 commit b109aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtl_fm_streamer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ connection_thread_fn(void *arg)
char WAVHeaderStereo[] = {
0x52,0x49, 0x46,0x46, 0x64,0x19, 0xff,0x7f, 0x57,0x41, 0x56,0x45, 0x66,0x6d, 0x74,0x20,
0x10,0x00, 0x00,0x00, 0x01,0x00, 0x02,0x00, 0x80,0xbb, 0x00,0x00, 0x80,0xbb, 0x00,0x00,
0x02,0x00, 0x10,0x00, 0x64,0x61, 0x74,0x61, 0x40,0x19, 0xff,0x7f, 0x00,0x00, 0x00,0x00
0x04,0x00, 0x10,0x00, 0x64,0x61, 0x74,0x61, 0x40,0x19, 0xff,0x7f, 0x00,0x00, 0x00,0x00
};

char TCPRead[1024];
Expand Down

0 comments on commit b109aa3

Please sign in to comment.