Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6127


Ignore:
Timestamp:
Nov 23, 2009, 9:25:34 PM (15 years ago)
Author:
rgrieder
Message:

Fixed sound problem (annoying cracking) and increased buffers for faster loading (doesn't really make the difference though…).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/BaseSound.cc

    r6117 r6127  
    218218    ALuint BaseSound::loadOggFile()
    219219    {
    220         char inbuffer[4096];
     220        char inbuffer[256*1024];
    221221        std::vector<char> outbuffer;
     222        outbuffer.reserve(80*1024*1024);
    222223        OggVorbis_File vf;
    223224        vorbis_info* vorbisInfo;
     
    257258            else
    258259            {
    259                 outbuffer.insert(outbuffer.end(), inbuffer, inbuffer + sizeof(inbuffer));
     260                outbuffer.insert(outbuffer.end(), inbuffer, inbuffer + ret);
    260261            }
    261262        }
Note: See TracChangeset for help on using the changeset viewer.