Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6827 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Jan 29, 2006, 2:10:48 PM (19 years ago)
Author:
bensch
Message:

trunk: Music should be loadable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/ogg_player.cc

    r5283 r6827  
    3434{
    3535  this->setClassID(CL_SOUND_OGG_PLAYER, "OggPlayer");
     36
     37  this->source = 0;
     38
    3639  if (fileName != NULL)
    3740  {
     
    7073    alGenBuffers(2, buffers);
    7174    check();
    72     alGenSources(1, &source);
     75    SoundEngine::getInstance()->popALSource(this->source);
    7376    check();
    7477
     
    8891    alSourceStop(source);
    8992    empty();
    90     alDeleteSources(1, &source);
     93    SoundEngine::getInstance()->pushALSource(source);
    9194    check();
    9295    alDeleteBuffers(1, buffers);
Note: See TracChangeset for help on using the changeset viewer.