Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5917 in orxonox.OLD for trunk/src/lib/sound/sound_engine.h


Ignore:
Timestamp:
Dec 4, 2005, 9:27:18 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: al-sound-source-allocation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/sound_engine.h

    r5885 r5917  
    1414
    1515#include <list>
     16#include <stack>
    1617
    1718#define SOUND_DOPPLER_FACTOR       0.001          //!< A factor for the audible doppler effect
     
    2122class PNode;
    2223class IniParser;
     24
    2325
    2426//! A class that handles audio via the openAudioLibrary
     
    5456    void flushAllBuffers();
    5557    void flushAllSources();
     58
     59    bool allocateSources(unsigned int count);
    5660    bool initAudio();
    5761
     
    7882    const std::list<BaseObject*>*  sourceList;               //!< A list for all the sources in the scene.
    7983
    80 
     84    unsigned int                   maxSourceCount;           //!< How many Sources is the Maximum
     85    std::stack<ALuint>             ALSources;                //!< A list of real openAL-Sources, the engine allocates, and stores for reuse.
    8186};
    8287
Note: See TracChangeset for help on using the changeset viewer.