Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2009, 10:14:08 PM (14 years ago)
Author:
rgrieder
Message:

Fixed a major sound issue: The state gets reset to 'Stopped' when the sound has finished playing (unless in loop mode of course).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/SoundManager.h

    r6370 r6383  
    102102        void releaseSoundBuffer(const shared_ptr<SoundBuffer>& buffer, bool bPoolBuffer);
    103103
    104         ALuint getSoundSource();
     104        ALuint getSoundSource(BaseSound* object);
    105105        void releaseSoundSource(ALuint source);
    106106
     
    147147        // Sound source related
    148148        unsigned int maxSources_;
    149         std::vector<ALuint> soundSources_;
     149        std::vector<ALuint> availableSoundSources_;
     150        std::vector<std::pair<ALuint, BaseSound*> > usedSoundSources_;
    150151
    151152        static SoundManager* singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.