kopia lustrzana https://github.com/rs1729/RS
baseband IQ: approx (prime) base_sr 900001
rodzic
828664aab1
commit
1b5f384673
|
@ -303,6 +303,7 @@ float read_wav_header(pcm_t *pcm) {
|
||||||
|
|
||||||
if (bits_sample != 8 && bits_sample != 16 && bits_sample != 32) return -1;
|
if (bits_sample != 8 && bits_sample != 16 && bits_sample != 32) return -1;
|
||||||
|
|
||||||
|
if (sample_rate == 900001) sample_rate -= 1;
|
||||||
|
|
||||||
pcm->sr = sample_rate;
|
pcm->sr = sample_rate;
|
||||||
pcm->bps = bits_sample;
|
pcm->bps = bits_sample;
|
||||||
|
|
|
@ -434,6 +434,8 @@ static int read_wav_header(FILE *fp, int wav_channel) {
|
||||||
|
|
||||||
if (bits_sample != 8 && bits_sample != 16 && bits_sample != 32) return -1;
|
if (bits_sample != 8 && bits_sample != 16 && bits_sample != 32) return -1;
|
||||||
|
|
||||||
|
if (sample_rate == 900001) sample_rate -= 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue