From 4bceb23ea43107fb5f734311b023916c0c37425b Mon Sep 17 00:00:00 2001
From: netpro2k <netpro2k@gmail.com>
Date: Thu, 28 Sep 2017 00:40:06 -0700
Subject: [PATCH] Add audio spatialization

---
 package.json      | 2 +-
 public/index.html | 4 ++--
 yarn.lock         | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/package.json b/package.json
index 7011e218b..c588ab262 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
     "aframe-teleport-controls": "^0.3.0",
     "easyrtc": "^1.1.0",
     "express": "^4.15.5",
-    "networked-aframe": "https://github.com/netpro2k/networked-aframe#02cc9b7a154f861e3ff96272823de4a8133bc2e4",
+    "networked-aframe": "https://github.com/netpro2k/networked-aframe#feature/positional-audio",
     "socket.io": "^2.0.3"
   },
   "devDependencies": {
diff --git a/public/index.html b/public/index.html
index 055e9aecf..390f940d1 100644
--- a/public/index.html
+++ b/public/index.html
@@ -9,7 +9,7 @@
 </head>
 
 <body>
-  <a-scene networked-scene="adapter: webrtc; audio: true;">
+  <a-scene networked-scene="adapter: easyrtc; audio: true; debug: true;">
     <a-assets>
       <img id="grid" src="https://img.gs/bbdkhfbzkk/stretch/https://i.imgur.com/25P1geh.png" crossorigin="anonymous">
       <img id="sky" src="http://i.imgur.com/WqlqEkq.jpg" crossorigin="anonymous" />
@@ -20,7 +20,7 @@
       </script>
 
       <script id="head-template" type="text/html">
-        <a-sphere color="#EF2D5E" position="0 1 0"></a-sphere>
+        <a-sphere color="#EF2D5E" position="0 1 0" networked-audio-source></a-sphere>
       </script>
 
       <script id="hand-template" type="text/html">
diff --git a/yarn.lock b/yarn.lock
index f5325c6e3..8cea40d74 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1716,9 +1716,9 @@ negotiator@0.6.1:
   version "0.6.1"
   resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"
 
-"networked-aframe@https://github.com/netpro2k/networked-aframe#02cc9b7a154f861e3ff96272823de4a8133bc2e4":
+"networked-aframe@https://github.com/netpro2k/networked-aframe#feature/positional-audio":
   version "0.3.0"
-  resolved "https://github.com/netpro2k/networked-aframe#02cc9b7a154f861e3ff96272823de4a8133bc2e4"
+  resolved "https://github.com/netpro2k/networked-aframe#48d4855b8b5043aaea3d67dfcb4ef8b79bfb82cd"
   dependencies:
     aframe-lerp-component "^1.1.0"
     aframe-template-component "3.2.1"
-- 
GitLab