|
@ -91,7 +91,7 @@ class WAVHeader { |
|
|
header.bits_per_sample = bits_per_sample; |
|
|
header.bits_per_sample = bits_per_sample; |
|
|
|
|
|
|
|
|
// 填充 data 子块
|
|
|
// 填充 data 子块
|
|
|
strcpy(header.subchunk2_id, "data"); |
|
|
|
|
|
|
|
|
memcpy(header.subchunk2_id, "data",4); |
|
|
header.subchunk2_size = wavbinsize; |
|
|
header.subchunk2_size = wavbinsize; |
|
|
} |
|
|
} |
|
|
void resize(uint32_t wavbinsize) { |
|
|
void resize(uint32_t wavbinsize) { |
|
|