A minetest mod for mapmaking
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
401B

  1. -- Audio API (Internal)
  2. --
  3. -- Contains functions for providing audio feedback
  4. local audio = {
  5. -- Play a feedback sound localized on the given player
  6. --
  7. -- sound: The sound to play
  8. -- player: The player who triggered the sound
  9. play_feedback = function(sound, player)
  10. minetest.sound_play(sound, { pos=player:get_pos(), max_hear_distance=5 }, true);
  11. end
  12. };
  13. return audio;