Beep-on-packet support in POCSAG app (#2061)

This commit is contained in:
Mark Thompson 2024-03-29 15:27:53 -05:00 committed by GitHub
parent fe2fbb847f
commit 0db65ccb6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 0 deletions

View file

@ -361,6 +361,10 @@ void POCSAGProcessor::on_message(const Message* const message) {
break;
}
case Message::ID::AudioBeep:
on_beep_message(*reinterpret_cast<const AudioBeepMessage*>(message));
break;
default:
break;
}
@ -414,6 +418,10 @@ void POCSAGProcessor::send_packet() {
shared_memory.application_queue.push(message);
}
void POCSAGProcessor::on_beep_message(const AudioBeepMessage& message) {
audio::dma::beep_start(message.freq, message.sample_rate, message.duration_ms);
}
/* main **************************************************/
int main() {