mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add sounds, tune things
This commit is contained in:
parent
77120a021d
commit
93219e3b9d
7 changed files with 201 additions and 44 deletions
|
@ -454,6 +454,8 @@ public:
|
|||
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 @@ public:
|
|||
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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue