should be fine?
This commit is contained in:
parent
6d4842e49b
commit
f5dfcdcdeb
|
|
@ -195,7 +195,7 @@ int fm_mpx_open(char *filename, size_t len, int raw, double preemphasis, int raw
|
||||||
// 10 after.
|
// 10 after.
|
||||||
int fm_mpx_get_samples(float *mpx_buffer, int drds, float compressor_decay, float compressor_attack, float compressor_max_gain_recip, int disablestereo, float gain, int enablecompressor, int rds_ct_enabled) {
|
int fm_mpx_get_samples(float *mpx_buffer, int drds, float compressor_decay, float compressor_attack, float compressor_max_gain_recip, int disablestereo, float gain, int enablecompressor, int rds_ct_enabled) {
|
||||||
int stereo_capable = (channels > 1) && (!disablestereo); //chatgpt
|
int stereo_capable = (channels > 1) && (!disablestereo); //chatgpt
|
||||||
if(!drds) get_rds_samples(mpx_buffer, length, stereo_capable, 1);
|
if(!drds) get_rds_samples(mpx_buffer, length, stereo_capable, rds_ct_enabled);
|
||||||
|
|
||||||
if(inf == NULL) return 0; // if there is no audio, stop here
|
if(inf == NULL) return 0; // if there is no audio, stop here
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ uint16_t crc(uint16_t block) {
|
||||||
Returns 1 if the CT group was generated, 0 otherwise
|
Returns 1 if the CT group was generated, 0 otherwise
|
||||||
*/
|
*/
|
||||||
int get_rds_ct_group(uint16_t *blocks, int enabled) {
|
int get_rds_ct_group(uint16_t *blocks, int enabled) {
|
||||||
if(!enabled) return;
|
if(!enabled) return 0;
|
||||||
static int latest_minutes = -1;
|
static int latest_minutes = -1;
|
||||||
|
|
||||||
// Check time
|
// Check time
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue