mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-31 08:49:17 +02:00
don't you just love correcting tilt
This commit is contained in:
+1
-1
@@ -439,7 +439,7 @@ int setup_audio(FM95_Runtime* runtime, const FM95_DeviceNames dv_names, const FM
|
|||||||
}
|
}
|
||||||
|
|
||||||
void init_runtime(FM95_Runtime* runtime, const FM95_Config config) {
|
void init_runtime(FM95_Runtime* runtime, const FM95_Config config) {
|
||||||
if(config.tilt != 0) tilt_init(&runtime->tilter, config.tilt, config.sample_rate);
|
if(config.tilt != 0) tilt_init(&runtime->tilter, config.tilt);
|
||||||
|
|
||||||
if(config.calibration != 0) {
|
if(config.calibration != 0) {
|
||||||
init_oscillator(&runtime->osc, (config.calibration == 2) ? 60 : 400, config.sample_rate);
|
init_oscillator(&runtime->osc, (config.calibration == 2) ? 60 : 400, config.sample_rate);
|
||||||
|
|||||||
Reference in New Issue
Block a user