Changeset 8775 in orxonox.OLD for branches/terrain/src/lib/sound/sound_buffer.cc
- Timestamp:
- Jun 25, 2006, 11:30:59 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/sound/sound_buffer.cc
r8619 r8775 76 76 } 77 77 #if SDL_BYTEORDER == SDL_BIG_ENDIAN 78 79 80 81 82 83 78 if ( !( wavSpec.format == AUDIO_U8 || wavSpec.format == AUDIO_S8 ) ) { 79 int cnt = wavLength/2; 80 Uint16* wavBufferAsShorts = ( Uint16* )wavBuffer; 81 for ( int i = 0; i < cnt; ++i, ++wavBufferAsShorts ) 82 *wavBufferAsShorts = SDL_Swap16( *wavBufferAsShorts ); 83 } 84 84 #endif 85 85 alBufferData(this->bufferID, SoundBuffer::sdlAudioSpecToAlFormat(&wavSpec),
Note: See TracChangeset
for help on using the changeset viewer.