summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-14 01:59:07 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-01-14 01:59:07 +0000
commitd3f9d45505290c3d5e348936e53cb6714dc18b38 (patch)
tree045ce204902eed5b56a48779798ac9d95659c539 /libpcsxcore
parent16cc6e4f142b3162ed92507aa89a07090e40eb65 (diff)
downloadpcsxr-d3f9d45505290c3d5e348936e53cb6714dc18b38.tar.gz
- big endian audio data (cdrdao bin/toc image).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@62078 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/cdriso.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index 5c83990b..4a4982c7 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -980,6 +980,18 @@ long CALLBACK ISOreadCDDA(unsigned char m, unsigned char s, unsigned char f, uns
if (p == NULL) return -1;
memcpy(buffer, p - 12, CD_FRAMESIZE_RAW); // copy from the beginning of the sector
+
+ if (cddaBigEndian) {
+ int i;
+ unsigned char tmp;
+
+ for (i = 0; i < CD_FRAMESIZE_RAW / 2; i++) {
+ tmp = buffer[i * 2];
+ buffer[i * 2] = buffer[i * 2 + 1];
+ buffer[i * 2 + 1] = tmp;
+ }
+ }
+
return 0;
}