mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 09:39:12 -04:00
BasebandProcessor: Streamline construction of some messages.
This commit is contained in:
parent
77aceaaf56
commit
3ed77af0c1
2 changed files with 7 additions and 6 deletions
|
@ -117,7 +117,9 @@ struct ChannelStatistics {
|
|||
class ChannelStatisticsMessage : public Message {
|
||||
public:
|
||||
constexpr ChannelStatisticsMessage(
|
||||
) : Message { ID::ChannelStatistics }
|
||||
const ChannelStatistics& statistics
|
||||
) : Message { ID::ChannelStatistics },
|
||||
statistics { statistics }
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -150,8 +152,9 @@ struct AudioStatistics {
|
|||
class AudioStatisticsMessage : public Message {
|
||||
public:
|
||||
constexpr AudioStatisticsMessage(
|
||||
const AudioStatistics& statistics
|
||||
) : Message { ID::AudioStatistics },
|
||||
statistics { }
|
||||
statistics { statistics }
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue