endianness for ogg vorbis

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1950 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-13 19:17:30 +00:00
parent 8f1d24d57e
commit 5d615fcbf0
3 changed files with 9 additions and 2 deletions
+6
View File
@@ -263,3 +263,9 @@ void endianswap(void *memory, int stride, int length) // little endian as stor
p[stride-i-1] = t;
}
}
bool isbigendian()
{
long one = 1;
return !(*((char *)(&one)));
}