Added experimental Xcode project

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2156 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2008-07-11 01:55:13 +00:00
parent 6ce29b542a
commit f59052157d
5 changed files with 4710 additions and 2 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -26,6 +26,7 @@
# include <AL/al.h>
#endif
#include <SDL/SDL_endian.h>
#include "music_ogg.hpp"
#include "file_manager.hpp"
#include "user_config.hpp"
@ -280,7 +281,7 @@ void MusicOggStream::update()
bool MusicOggStream::streamIntoBuffer(ALuint buffer)
{
char pcm[BUFFER_SIZE];
#ifdef WORDS_BIGENDIAN
#if defined(WORDS_BIGENDIAN) || SDL_BYTEORDER==SDL_BIG_ENDIAN
int isBigEndian = 1;
#else
int isBigEndian = 0;

View File

@ -103,7 +103,7 @@ bool SFXImpl::load(const char* filename)
if( spec.channels == 2 ) format = AL_FORMAT_STEREO16;
else format = AL_FORMAT_MONO16;
#ifdef WORDS_BIGENDIAN
#if defined(WORDS_BIGENDIAN) || SDL_BYTEORDER==SDL_BIG_ENDIAN
// swap bytes around for big-endian systems
for(unsigned int n=0; n<size-1; n+=2)
{