mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 11:27:32 +00:00
Improved Audio Beep Test (#2026)
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
// Functions for audio beep (used by Sonde RSSI)
|
||||
void ToneGen::configure_beep(const uint32_t freq, const uint32_t sample_rate) {
|
||||
f_delta_ = (float)(freq * sizeof(sine_table_i8)) / sample_rate;
|
||||
f_tone_phase_ = 0.0;
|
||||
f_tone_phase_ = sizeof(sine_table_i8) / 4; // Start at sine peak to handle case of freq=sample_rate/2
|
||||
}
|
||||
|
||||
int16_t ToneGen::process_beep() {
|
||||
|
Reference in New Issue
Block a user