Add sounds, tune things
This commit is contained in:
@@ -454,6 +454,8 @@ class OpenALSoundManager: public ISoundManager
|
||||
int playSound(const std::string &name, bool loop, float volume)
|
||||
{
|
||||
maintain();
|
||||
if(name == "")
|
||||
return 0;
|
||||
SoundBuffer *buf = getFetchBuffer(name);
|
||||
if(!buf){
|
||||
infostream<<"OpenALSoundManager: \""<<name<<"\" not found."
|
||||
@@ -465,6 +467,8 @@ class OpenALSoundManager: public ISoundManager
|
||||
int playSoundAt(const std::string &name, bool loop, float volume, v3f pos)
|
||||
{
|
||||
maintain();
|
||||
if(name == "")
|
||||
return 0;
|
||||
SoundBuffer *buf = getFetchBuffer(name);
|
||||
if(!buf){
|
||||
infostream<<"OpenALSoundManager: \""<<name<<"\" not found."
|
||||
|
||||
Reference in New Issue
Block a user