mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 08:11:47 -05:00
use bswap correctly
This commit is contained in:
parent
e1e9128fb1
commit
7524130b7a
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "audio.h"
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <byteswap.h>
|
||||
#include <pthread.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -47,7 +48,7 @@ void handle_audio_packet(gamepad_context_t *ctx, unsigned char *data, size_t len
|
|||
|
||||
// ap->format = reverse_bits(ap->format, 3);
|
||||
// ap->seq_id = reverse_bits(ap->seq_id, 10);
|
||||
ap->payload_size = __bswap_16(ap->payload_size);
|
||||
ap->payload_size = bswap_16(ap->payload_size);
|
||||
// ap->timestamp = reverse_bits(ap->timestamp, 32);
|
||||
|
||||
if (ap->type == TYPE_VIDEO) {
|
||||
|
|
Loading…
Reference in a new issue