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

This commit is contained in:
2021-07-29 15:40:44 +03:00
parent 7eb5195fb3
commit 56e0eba53a
4 changed files with 9 additions and 0 deletions

View File

@@ -405,6 +405,11 @@ function ПодкидываниеСтрелы() {
мир.подкидываниеСтрелы = new ПодкидываниеСтрелы();
мир.подкидываниеСтрелы.завершить = function() {
мир.подкидываниеСтрелы = null;
/**/var audio = new Audio("р/звуки/543927__eminyildirim__pistol-gun-cocking.wav");
/**/audio.play();
/**/console.debug("воспроизвели аудио");
};

1
р/звуки/README.md Normal file
View File

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

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)