mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
fixed audio seemingly
This commit is contained in:
1 parent
b063abb359
commit
997c4d7543
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user