Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 6, 2009, 9:46:04 PM (14 years ago)
Author:
rgrieder
Message:

Audio sources seem to be very limited resources. If we create more than available sources (usually more than 256), it will not result in a failed assert anymore. Instead, the sound will simply not load and play.

File:
1 edited

Legend:

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

    r6254 r6260  
    8787        delete[] buffer;
    8888
    89         if (this->audioBuffer_ == AL_NONE)
     89        if (!alIsBuffer(this->audioBuffer_))
    9090            ThrowException(General, "Sound Error: Standard file loader failed: " << alutGetErrorString(alutGetError()));
    9191    }
     
    170170        ov_clear(&vf);
    171171
    172         if (this->audioBuffer_ == AL_NONE)
     172        if (!alIsBuffer(this->audioBuffer_))
    173173            ThrowException(General, "Sound: Ogg file loader failed when creating the buffer.");
    174174    }
Note: See TracChangeset for help on using the changeset viewer.