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:
@@ -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)));
|
||||
}
|
||||
Reference in New Issue
Block a user