Changeset 9140 in orxonox.OLD for branches/terrain/src/lib/sound
- Timestamp:
 - Jul 4, 2006, 3:06:00 PM (19 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          branches/terrain/src/lib/sound/ogg_player.cc (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/terrain/src/lib/sound/ogg_player.cc
r9019 r9140 402 402 if(size == 0) 403 403 return false; 404 /*#ifdef SDL_BIG_ENDIAN405 int cnt = wavLength/2;406 Uint16* wavBufferAsShorts = ( Uint16* )wavBuffer;407 for ( int i = 0; i < cnt; ++i, ++wavBufferAsShorts )408 *wavBufferAsShorts = SDL_Swap16( *wavBufferAsShorts );409 #endif */404 #ifdef SDL_BIG_ENDIAN 405 int cnt = OGG_PLAYER_BUFFER_SIZE/2; 406 Uint16* wavBufferAsShorts = ( Uint16* )pcm; 407 for ( int i = 0; i < cnt; ++i, ++wavBufferAsShorts ) 408 *wavBufferAsShorts = SDL_Swap16( *wavBufferAsShorts ); 409 #endif 410 410 alBufferData(buffer, format, pcm, size, vorbisInfo->rate); 411 411 if (DEBUG_LEVEL >= 3)  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






