Commit Graph
100 Commits
Author SHA1 Message Date
kuba 56117c1933 return the actually fucking clipped sample (facepalm moment) 2025-08-03 16:16:54 +02:00
kuba 07017aacd8 show gain with dbr 2025-08-03 16:13:54 +02:00
kuba db61f78e5a introduce soft clipping into bs412 2025-08-03 16:03:15 +02:00
kuba de8f4652a4 something here and there 2025-08-03 15:58:43 +02:00
kuba 122677ef1e bug 2025-08-02 18:16:31 +02:00
kuba a7a3b49452 fix bug 2025-08-02 18:14:24 +02:00
kuba 55981533b8 ensure stop 2025-08-02 17:57:33 +02:00
kuba bbcce3ff71 fuck you 2025-08-02 17:54:32 +02:00
kuba e099e62949 keep gain across reloads 2025-08-02 17:53:45 +02:00
kuba 36cc57109e after reloading it would quit, thats why 2025-08-02 13:12:08 +02:00
kuba 21fe8c925b add reloading on SIGHUP signals, but these will not touch the audio runtime 2025-08-02 13:08:52 +02:00
kuba 13583c1728 things 2025-08-02 12:41:04 +02:00
kuba 55ecde6673 little optimalization, move the rds buffer into runtime 2025-08-02 12:07:46 +02:00
kuba 3cde61f31e remove bs412 +.1 limiter 2025-07-25 17:54:05 +02:00
kuba 59a099c619 option to disable agc when max == 0, also don't initialize filters if they're off 2025-07-15 22:10:16 +02:00
kuba 777993a2d6 again but properly 2025-07-15 21:07:01 +02:00
kuba 3d338bda38 get rid of the lookahead 2025-07-15 21:06:40 +02:00
kuba f7cd9d47e1 now? 2025-07-15 21:00:49 +02:00
kuba a557e101b2 it does break it but idk why 2025-07-15 21:00:12 +02:00
kuba 9c89e9f601 this seems to break something 2025-07-15 20:57:51 +02:00
kuba ae9453b63c show avg deviation in debug too 2025-07-15 20:55:32 +02:00
kuba cb60c4cc9c maybe this fixes something 2025-07-15 20:49:54 +02:00
kuba e766ed8964 fix bad calculation 2025-07-15 20:44:52 +02:00
kuba 6f23536c4c set bs412 gain to 0 on start 2025-07-15 20:39:33 +02:00
kuba ff494b549b i fucking hate vscode's suggestions 2025-07-15 20:36:41 +02:00
kuba 6008d5e2e3 bs412 lookahead 2025-07-15 20:36:05 +02:00
kuba 229ceff6d2 move lpf after agc 2025-07-12 13:50:33 +02:00
kuba e0847d3a57 fix audio_deviation 2025-07-12 13:47:51 +02:00
kuba d2ae90d872 some changes here and there 2025-07-12 13:28:16 +02:00
kuba 779259012e change filter order (used to be preemp -> lpf -> agc, now is lpf -> agc -> preemp) 2025-07-10 20:28:52 +02:00
kuba 55d0d72042 now 2025-07-10 20:16:23 +02:00
kuba c5b3fde1b9 wow 2025-07-10 20:14:39 +02:00
kuba a1a55a6d35 oh shit 2025-07-10 20:12:29 +02:00
kuba 668dfea9f2 make bs412 a dynamic compressor (boosts, and attunuates instead of just attenuating dynamically) 2025-07-10 20:11:52 +02:00
kuba 4146110e6e kinda change the agc 2025-07-10 20:09:49 +02:00
kuba 7956b7d989 will thjis commit break everything? 2025-07-10 19:32:21 +02:00
kuba db60762057 this is better than the powf func 2025-07-10 19:23:40 +02:00
kuba 7abf177b5f lol 2025-07-10 19:00:08 +02:00
kuba 9df5eeb47a change bs412 implementation 2025-07-10 18:59:39 +02:00
kuba e82c617dab disable filters if their values are 0, add lpf_cutoff config and also rechain the bs412 compressor, as mpx_in used to be pure pass, but now it is added before the bs412 compressor 2025-07-10 18:51:32 +02:00
kuba 6b0dd96de5 change bs412 clipper value 2025-07-09 08:37:59 +02:00
kuba f06f9056fa actually fix bs412 2025-07-09 08:35:36 +02:00
kuba ec8c898e0c fix bs412 2025-07-09 08:33:45 +02:00
kuba d01b46af5f limit min of bs412 to 0 2025-07-08 23:20:04 +02:00
kuba 779b8d89b0 im about to lose my HEADer 2025-07-08 23:18:51 +02:00
kuba 58881858dd configure the bs412 max 2025-07-08 23:18:08 +02:00
kuba d78e82122a limit the gain 2025-07-08 23:13:50 +02:00
kuba d60128df75 wow 2025-07-08 23:12:48 +02:00
kuba de8a36e431 what the fuck is the problem (also aveRAGE) 2025-07-08 23:12:16 +02:00
kuba f937bd81b7 clip breaks evrything? 2025-07-08 23:07:26 +02:00
kuba 58a37da27c clip bs412 and make it simpler to understand, both by me and the compiler 2025-07-08 23:04:38 +02:00
kuba dced0383d5 shit 2025-07-08 22:59:17 +02:00
kuba 69494eaac4 try another bs412 compressor implementation 2025-07-08 22:56:44 +02:00
kuba 52f2f61a9a tilt correction? (yes, ai wrote it, you hate me because of that? find a tilt filter yourself then that you can copy the code of) 2025-07-08 19:54:15 +02:00
kuba 8932a9a24d change logic of the master volume 2025-07-08 19:39:25 +02:00
kuba cc35da31e3 add option to dynamically configure volume levels in the config file (bro really feels like a professional dev) 2025-07-06 22:04:55 +02:00
kuba f9465cd1f5 add a audio preamp value to fm95 2025-07-06 21:59:15 +02:00
kuba 1bdb7bb35b there is no need for sepeate configs, but yet there is? 2025-06-29 11:05:19 +02:00
kuba 657901384a fix some stuff 2025-06-29 11:02:02 +02:00
kuba 1f53022c59 oh rigth 2025-06-29 10:58:53 +02:00
kuba ef3170b2d2 add config to chimer 2025-06-29 10:56:08 +02:00
kuba 8e1048b994 expose bs412 agc settings 2025-06-28 19:26:40 +02:00
kuba 06b37119d4 cap bs412 2025-06-28 19:22:44 +02:00
kuba b6231bb345 expose more settings to config and change bs412 compression logic 2025-06-28 19:22:09 +02:00
kuba 64424959ab be412 :( 2025-06-28 18:44:03 +02:00
kuba 37fa5ee8ac that must be the guy 2025-06-28 18:40:26 +02:00
kuba e21e458936 idk 2025-06-28 18:38:45 +02:00
kuba 0ae988a126 what 2025-06-28 18:32:38 +02:00
kuba 2091b87ea6 change up the config stuff 2025-06-28 18:32:01 +02:00
kuba 26f9ccc0c7 part 2? 2025-06-28 18:15:58 +02:00
kuba aaea2fbf65 fm95 now uses ini config files! 2025-06-28 18:14:53 +02:00
kuba 638114715b change agc settings 2025-06-28 16:56:07 +02:00
kuba 07a56bebeb restructure fm95 sligthly 2025-06-28 16:48:33 +02:00
kuba fa19d53d38 restructure sca95 2025-06-28 16:21:14 +02:00
kuba cf24e3698d remove dcf95 2025-06-28 16:07:23 +02:00
kuba ffbd230a37 restructure chimer95 2025-06-28 16:03:04 +02:00
kuba 6cea5eee19 fix access denied errors 2025-06-28 15:45:22 +02:00
kuba 29fc066376 big 2.0, restructurize fm95 2025-06-28 13:24:07 +02:00
kuba 44d54899f0 minor changes 2025-06-27 20:05:32 +02:00
kuba 9c7018132f optimize a bit the stereo encoder and in case of read error from the rds or mpx devices just disable them 2025-06-27 10:42:02 +02:00
kuba ee1a6f5c14 reduce lpf 2025-06-21 16:01:46 +02:00
kuba 4f4f6e5d93 sca moved out... 2025-06-21 15:25:22 +02:00
kuba 1f2da09e89 oops 2025-06-21 15:07:18 +02:00
kuba 16f0a53c05 start modularization 2025-06-21 15:06:27 +02:00
kuba 33ffcd9682 do not do dynamic memory, static memory = static stability 2025-06-21 14:27:21 +02:00
kuba 102067881d DO NOT USE MALLOC DO NOT USE MALLOC DO NOT USE MALLOC DO NOT USE MALLOC DO NOT USE MALLOC DO NOT USE MALLOC DO NOT USE MALLOC 2025-06-21 14:25:39 +02:00
kuba dbd5aa7180 no clue 2025-06-21 14:19:29 +02:00
kuba e2a8f6c8f4 course doesnt work 2025-06-21 14:12:27 +02:00
kuba 5a03d06508 wanted good, but had to use malloc 2025-06-21 14:09:25 +02:00
kuba d0b817026f man 2025-06-21 14:07:31 +02:00
kuba aa6f87c0da changes here and there 2025-06-21 14:05:56 +02:00
kuba 9bfff3fef2 increase lpf order 2025-06-21 13:33:03 +02:00
kuba 842a87a120 clean up a bit 2025-06-16 10:57:36 +02:00
kuba fac42da5fe what? 2025-06-16 10:36:47 +02:00
kuba b984fb293c change variable name 2025-06-16 10:35:57 +02:00
kuba 4f8d0639bd optimize (also merge move preemp ref) 2025-06-16 10:34:08 +02:00
kuba 334688b785 optimize or just clean up 2025-06-09 20:13:43 +02:00
kuba cad6080c07 do the preemp gain properly, set a refrence freq (+0db) sligthly above the LPF cutoff, thus we avoid clipping 2025-06-09 20:03:44 +02:00
kuba bcb9559d59 move constants.h and the oscillator into libfm from libfmdsp 2025-06-09 19:56:25 +02:00
kuba 90e9925399 minor change to RDS2, dont allow the two additional carriers's device to be on when RDS isnt even on 2025-06-09 16:12:45 +02:00