mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-08 22:52:27 -04:00
Beep-on-packet support in POCSAG app (#2061)
This commit is contained in:
parent
fe2fbb847f
commit
0db65ccb6b
3 changed files with 17 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue