Add audio playback ability to WAV Viewer app (#1829)

This commit is contained in:
Mark Thompson 2024-01-30 13:55:32 -06:00 committed by GitHub
parent 8068517808
commit 125184f300
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 211 additions and 35 deletions

View file

@ -116,15 +116,16 @@ void SoundBoardView::start_tx(const uint32_t id) {
// TODO: Delete all this and use tx model.
baseband::set_audiotx_config(
TONES_SAMPLERATE / 20, // Update vu-meter at 20Hz
1536000 / 20, // Update vu-meter at 20Hz
transmitter_model.channel_bandwidth(),
0, // Gain is unused
8, // shift_bits_s16, default 8 bits, but also unused
8, // shift_bits_s16, default 8 bits, but also unused
8, // bits per sample
TONES_F2D(tone_key_frequency(tone_key_index), TONES_SAMPLERATE),
0, // AM
0, // DSB
0, // USB
0 // LSB
false, // AM
false, // DSB
false, // USB
false // LSB
);
baseband::set_sample_rate(sample_rate);