Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 18, 2010, 3:48:49 PM (15 years ago)
Author:
erwin
Message:

More tries to fix the sound: there seems to be no context in the stream thread…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound5/src/orxonox/sound/SoundManager.cc

    r6510 r6562  
    116116
    117117        // Create sound context and make it the currently used one
    118         this->context_ = alcCreateContext(this->device_, NULL);
     118        const ALint contattr[]  = {ALC_SYNC, 1, 0};
     119        this->context_ = alcCreateContext(this->device_, contattr);
    119120        if (this->context_ == NULL)
    120121            ThrowException(InitialisationFailed, "Sound: Error: Could not create ALC context");
Note: See TracChangeset for help on using the changeset viewer.