portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2
GNU General Public License v3.0
3.05k stars 520 forks source link

More debug Audio Beep Test tweaks #2028

Closed NotherNgineer closed 3 months ago

NotherNgineer commented 3 months ago

For audio debug, added support for 12KHz sample rate and configurable audio frequency step.

In configure_beep (tone_gen), revert to start sampling the sine wave at 0 for frequencies below sample_rate/4 (trying to avoid a tiny pop in the speaker when the beep starts, yet still make sure there are non-zero samples at high frequencies)