fixed audio seemingly

This commit is contained in:
itsmattkc committed 2024-11-06 16:18:14 -08:00
1 parent b063abb359
commit 997c4d7543
1 file changed
+2 -2
+2 -2
View File
@@ -31,7 +31,7 @@ typedef struct {
uint32_t video_format;
} AudioPacketVideoFormat;
void handle_audio_packet(gamepad_context_t *ctx, char *data, size_t len)
void handle_audio_packet(gamepad_context_t *ctx, unsigned char *data, size_t len)
{
//
// === IMPORTANT NOTE! ===
@@ -39,7 +39,7 @@ void handle_audio_packet(gamepad_context_t *ctx, char *data, size_t len)
// This for loop skips ap->format, ap->seq_id, and ap->timestamp to save processing.
// If you want those, you'll have to adjust this loop.
//
for (int byte = 2; byte < 4; byte++) {
for (int byte = 0; byte < 4; byte++) {
data[byte] = (unsigned char) reverse_bits(data[byte], 8);
}