should be fine?

This commit is contained in:
Kuba 2023-11-03 09:21:46 +00:00
parent 6d4842e49b
commit f5dfcdcdeb
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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