Changeset 8293 in orxonox.OLD for trunk/src/lib/sound/ogg_player.cc
- Timestamp:
- Jun 8, 2006, 11:11:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.cc
r7849 r8293 31 31 32 32 #include "debug.h" 33 34 #ifdef HAVE_SDL_SDL_H 35 36 #include <SDL/SDL.h> 37 #include <SDL/SDL_endian.h> 38 39 #else 40 41 #include <SDL.h> 42 #include <SDL_endian.h> 43 44 #endif 33 45 34 46 namespace OrxSound … … 151 163 bool OggPlayer::play() 152 164 { 153 if (!(this->state & OggPlayer::FileOpened))165 /*if (!(this->state & OggPlayer::FileOpened)) 154 166 return false; 155 167 … … 161 173 if (this->musicThreadID == NULL) 162 174 return ((this->musicThreadID = SDL_CreateThread(OggPlayer::musicThread, (void*)this)) != NULL); 163 return true; 175 return true;*/ 164 176 } 165 177 … … 385 397 if(size == 0) 386 398 return false; 387 399 /*#ifdef SDL_BIG_ENDIAN 400 int cnt = wavLength/2; 401 Uint16* wavBufferAsShorts = ( Uint16* )wavBuffer; 402 for ( int i = 0; i < cnt; ++i, ++wavBufferAsShorts ) 403 *wavBufferAsShorts = SDL_Swap16( *wavBufferAsShorts ); 404 #endif*/ 388 405 alBufferData(buffer, format, pcm, size, vorbisInfo->rate); 389 406 if (DEBUG_LEVEL >= 3)
Note: See TracChangeset
for help on using the changeset viewer.