mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 12:53:53 +01:00
limit the level
This commit is contained in:
@@ -23,7 +23,7 @@ void init_rds_objects() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void set_rds_level(float _level) {
|
void set_rds_level(float _level) {
|
||||||
level = _level;
|
level = fminf(1.0f, fmaxf(0.0f, _level));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get an RDS sample. This generates the envelope of the waveform using
|
/* Get an RDS sample. This generates the envelope of the waveform using
|
||||||
|
|||||||
Reference in New Issue
Block a user