Browse Source

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

master
parent
commit
56e0eba53a
4 changed files with 9 additions and 0 deletions
  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 View File

@@ -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 View File


+ 1
- 0
р/звуки/README.md View File

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

+ 3
- 0
сервер.js View File

@@ -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)


Loading…
Cancel
Save