blob: c41eadb0232ceb3dbf572b29ca2a7682a8877138 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "packet_ext.h"
void nn_packet_write_audio_format(struct nn_packet *packet, struct camu_audio_format *fmt)
{
NNWT_PACKET_WRITE_TYPE(packet, s32, fmt->format);
NNWT_PACKET_WRITE_TYPE(packet, s32, fmt->sample_rate);
NNWT_PACKET_WRITE_TYPE(packet, s32, fmt->channel_count);
}
void nn_packet_read_audio_format(struct nn_packet *packet, struct camu_audio_format *fmt)
{
NNWT_PACKET_READ_TYPE(packet, s32, fmt->format);
NNWT_PACKET_READ_TYPE(packet, s32, fmt->sample_rate);
NNWT_PACKET_READ_TYPE(packet, s32, fmt->channel_count);
}
|