diff options
author | krzys-h <krzys_h@interia.pl> | 2013-04-13 16:06:35 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-04-13 16:34:52 +0200 |
commit | cdba398d29b78256ca12d665ccc4c31c00ec2007 (patch) | |
tree | 78baa11a65bd67246d7c6ef5d1704ba4e027b15b /src/sound/oalsound/alsound.h | |
parent | e3b92fb9d842af19f40777dc6764204100c926da (diff) | |
download | colobot-cdba398d29b78256ca12d665ccc4c31c00ec2007.tar.gz colobot-cdba398d29b78256ca12d665ccc4c31c00ec2007.tar.bz2 colobot-cdba398d29b78256ca12d665ccc4c31c00ec2007.zip |
Added music files cache
Diffstat (limited to 'src/sound/oalsound/alsound.h')
-rw-r--r-- | src/sound/oalsound/alsound.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sound/oalsound/alsound.h b/src/sound/oalsound/alsound.h index 7e0503a..b8afd4d 100644 --- a/src/sound/oalsound/alsound.h +++ b/src/sound/oalsound/alsound.h @@ -40,6 +40,7 @@ class ALSound : public CSoundInterface bool Create(bool b3D); bool Cache(Sound, std::string); + bool CacheMusic(std::string); bool GetEnable(); @@ -91,6 +92,7 @@ class ALSound : public CSoundInterface ALCdevice* mDevice; ALCcontext* mContext; std::map<Sound, Buffer*> mSounds; + std::map<std::string, Buffer*> mMusic; std::map<int, Channel*> mChannels; Channel *mCurrentMusic; Math::Vector mEye; |