projects
/
samples
/
web
/
DeviceMotionCapture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38a3834
)
[Title] revise to solve sound issue of this app
2.2_release
author
Joonghun Park
<jh718.park@samsung.com>
Wed, 3 Jul 2013 12:17:47 +0000
(21:17 +0900)
committer
Joonghun Park
<jh718.park@samsung.com>
Wed, 3 Jul 2013 12:21:24 +0000
(21:21 +0900)
[issue#]N_SE-44578
[problem] Sound does not hear at some times
[Solution] adding javascript code to sense the acceleration in every direction
Change-Id: I0c5b537133a7ed5a98d68398226453eb4205e626
js/main.js
patch
|
blob
|
history
diff --git
a/js/main.js
b/js/main.js
index
3a26d70
..
c301630
100755
(executable)
--- a/
js/main.js
+++ b/
js/main.js
@@
-50,7
+50,7
@@
function deviceMotionEvents() {
}
function playSoundHandler(e) {
- if(e.acceleration.x >
6
){
+ if(e.acceleration.x >
7 || e.acceleration.y > 7 || e.acceleration.x < -7 || e.acceleration.y < -7
){
audioElem.currentTime = 0;
audioElem.volume=1;
audioElem.play();