Ver código fonte

отладка аудио

master
pai
commit
56e0eba53a
4 arquivos alterados com 9 adições e 0 exclusões
  1. +5
    -0
      800.пример.json.js
  2. BIN
      р/звуки/543927__eminyildirim__pistol-gun-cocking.wav
  3. +1
    -0
      р/звуки/README.md
  4. +3
    -0
      сервер.js

+ 5
- 0
800.пример.json.js Ver arquivo

@@ -405,6 +405,11 @@ function ПодкидываниеСтрелы() {
мир.подкидываниеСтрелы = new ПодкидываниеСтрелы();
мир.подкидываниеСтрелы.завершить = function() {
мир.подкидываниеСтрелы = null;

/**/var audio = new Audio("р/звуки/543927__eminyildirim__pistol-gun-cocking.wav");
/**/audio.play();
/**/console.debug("воспроизвели аудио");

};




BIN
р/звуки/543927__eminyildirim__pistol-gun-cocking.wav Ver arquivo


+ 1
- 0
р/звуки/README.md Ver arquivo

@@ -0,0 +1 @@
* https://freesound.org/people/EminYILDIRIM/sounds/543927/

+ 3
- 0
сервер.js Ver arquivo

@@ -37,6 +37,9 @@ console.debug("fileName:", fileName);
case "jpg":
contentType = "image/jpg";
break;
case "wav":
contentType = "image/vnd.wave";
break;
}
fs.readFile(fileName, function(err, content) {
if (err)


Carregando…
Cancelar
Salvar