File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,12 @@ impl PannerNode {
454
454
& self . position_z
455
455
}
456
456
457
+ pub fn set_position ( & self , x : f32 , y : f32 , z : f32 ) {
458
+ self . position_x . set_value ( x) ;
459
+ self . position_y . set_value ( y) ;
460
+ self . position_z . set_value ( z) ;
461
+ }
462
+
457
463
pub fn orientation_x ( & self ) -> & AudioParam {
458
464
& self . orientation_x
459
465
}
@@ -466,6 +472,12 @@ impl PannerNode {
466
472
& self . orientation_z
467
473
}
468
474
475
+ pub fn set_orientation ( & self , x : f32 , y : f32 , z : f32 ) {
476
+ self . orientation_x . set_value ( x) ;
477
+ self . orientation_y . set_value ( y) ;
478
+ self . orientation_z . set_value ( z) ;
479
+ }
480
+
469
481
pub fn distance_model ( & self ) -> DistanceModelType {
470
482
self . distance_model . load ( Ordering :: Acquire ) . into ( )
471
483
}
You can’t perform that action at this time.
0 commit comments