From e2da542bed396e46aa1beee3b209e7fc6402f7a6 Mon Sep 17 00:00:00 2001 From: Rik Cabanier Date: Tue, 9 May 2023 16:32:42 +0000 Subject: [PATCH] update haptic test --- banjo_haptic.mp3 | Bin 0 -> 14301 bytes input-selection-4.html | 18 +++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 banjo_haptic.mp3 diff --git a/banjo_haptic.mp3 b/banjo_haptic.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..e9f9da331cf7be3e153729f6abf871010ec3dbad GIT binary patch literal 14301 zcmdseXH*ki)b6B`gb)G*Odw*Y2Bai(6n#TAK*UfDsF)ClfT(n_PeKS?=>!A~MVhEI z6?+Ip#GnCD5q*6rie0h3b}xS4{qFs9*S+`WU3afpbLN~mXXeb>Ywvx|v!C(xvWEkI z#3Up**n6?m1OOO|mo9L0v2k{?q0?yparZw@zvo=!|D(!@+p%@Ave+Lm0|4g^0FBnx z)?Tt?iGhKcnVF4^jiaNRo12%H7mLLT4c)kLBcIPtNJvXd+qZ9DW@bS_L1}5}kt0VM z8&8}#(cRsB@#4V1!071cy?YNHJeZ%KfAQkQ+qa)TfByFE+m9bVfByXS>(}q!e_p;g zIsW40==Ogq|0Sl-qW`>f?ih`Gp7>wQ|Cix_f8nGgLM>IT808Q4;>a5tLfDc*3-Zu zGL_!(tY2PgT2>&5vx9O6#0ns(QhrT6%V3(q_i%3}A(z3bD1Ka@&NE9_{^&YW)+9U` zR`}OF6CY=6wnjgI!Qm;iR`~EtsdGUfgr|%!GE{G7yps;Pi~q%GNQsQNcVn4~p?R&Oc_sv=29|V2nHO#HT`IN zQ_hAhx6*jJSkNOXY43L4@1%d^ z@}=jm$0zb0=8h|s>&N|DBRlV~w8js*J>B+I=5M&oTOyyGd^cCK#A)JX5M5voFJ8Wv zQs9L zyJQtZD5?B6<2QSGg`4Hx+uKvzFB6?F`u=OM`}4nzcOLz*i}P+1kU1DQju;%aRE77;UDP4#aNA_#J*wA(6 zj`s<3}+@9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5gs_17dDpjh++nc(iP{#i#Hv9` zb5}d=;<`U!&S2*zg#$K0wPZ6dG)${DqOxwUx3*z#3CI|qB$ zT(d9RbgZ9L^CbK0uQk`0#|uX;Z1W^Er9ZL0_Lp1QQ3 zavja5O^BQaF+n^w3Rp&rR3qxauw~PaX^uBI@t#OD!Q-s82~GNHYRl}rmC zQOE-QomPD!kVAp2)nh+ns9aPOmvEgD%9+D+ky;R^S9|tvG2IirDoUZCLD^%0LA(+m z`4$m{D&la0Y%bsXo~#bqt^HIZTg|xh?bs&YJ?BJF_HL^``<>r$_KF=}YbW9UKQ%1! z*TrGlnB=48P%K6#q!DV=7Y*^~AA%yuR6RZB)4o;u(1+V6o;TZmJQ4R2H(`to*xzfv z{Br70;=5Kzzjh?DF6KG4oV1~bZbAG|U3 zF>;xtN{3V8GIs6jSy?{gZF@5{{V%+zUU|I?g#2&;X( z&8ic>8}_+;)Rzi4H3tNHJ!h+atvrHeA5ky9qpyCiC7FDxP-;2xLjTnMUfa;NJMn3o zPHk9GKJp~_{HJXZm-i@6hGlyw{)lpc+qJ$m~{nNHRbc3KpaNbluGm!Tm!mrx!`!kgjUR6~&Bdz1b zYz_?#J^fo^8nW0UFm%grfu5djXy_?YeCP&VRA@X#4=JAvtExH^_9Qf3AET$Y-P=1L zhULD_+y2i_T8o4KH}c0$e>z4BVy@m|0RO$;|K-sC)l>hU8TxyUI4}SJutmrn_^ response.arrayBuffer()) .then(arrayBuffer => context.decodeAudioData(arrayBuffer)) .then(audioBuffer => { - yodelBuffer = audioBuffer; + banjoBuffer = audioBuffer; }); // WebGL scene globals. let gl = null; @@ -224,15 +224,19 @@ return; } + let audio_buffer = new AudioBuffer({'sampleRate': 3000, 'length': buffer.byteLength}); + audio_buffer.copyToChannel(buffer, 0); + ev.inputSource.gamepad.hapticActuators[0].playPCM((ev.inputSource.handedness == "left") ? audio_buffer : banjoBuffer); + let hitResult = scene.hitTest(targetRayPose.transform); if (hitResult) { // Check to see if the hit result was one of our boxes. for (let box of boxes) { if (hitResult.node == box.node) { let i = (ev.inputSource.handedness == "left") ? 0 : 1; - let audio_buffer = new AudioBuffer({'sampleRate': 3000, 'length': buffer.byteLength}); - audio_buffer.copyToChannel(buffer, 0); - ev.inputSource.gamepad.hapticActuators[0].playPCM(audio_buffer); +// let audio_buffer = new AudioBuffer({'sampleRate': 3000, 'length': buffer.byteLength}); +// audio_buffer.copyToChannel(buffer, 0); +// ev.inputSource.gamepad.hapticActuators[0].playPCM(audio_buffer/*banjoBuffer*/); currently_selected_boxes[i] = box; box.scale = [1.25, 1.25, 1.25]; box.selected = false;