Openvario / variod

Daemon for autonomous e-vario
4 stars 8 forks source link

Soft transitions #37

Closed hpmax closed 3 years ago

hpmax commented 3 years ago

I thought I had already committed part of this, that included a number of efficiency improvements, but apparently, I either didn't or no one accepted the changes.

The main thing in this new release is soft volume transitions which should remove clicks and pops.

Things I'd still like to consider doing but haven't done are modified waveforms and and fixed point. Also as previously pointed out, the pulseaudio system is screwed up as run from services.

hpmax commented 3 years ago

Okay, cleaned up the comments a bit.

Many of the parameters that we input to control the behavior are no longer actually used by the program, instead I'm now using them to pre-compute derivatives of the information to speed up processing in the audio generation loop. So pulse_length, and pulse_length_gain are not directly used, but they are displayed upon initial run. With those lines commented out, IF the values aren't specified in the .conf file, they would be displayed incorrectly, even though it wouldn't impact the actual program behavior. So I put them back in. Pulse_length_duty on the other hand is never used except to calculate other values so I deleted that line.