|
@@ -680,6 +680,30 @@ Object.defineProperties( THREE.WebGLRenderTarget.prototype, {
|
|
|
|
|
|
//
|
|
|
|
|
|
+Object.defineProperties( THREE.Audio.prototype, {
|
|
|
+ load: {
|
|
|
+ value: function ( file ) {
|
|
|
+
|
|
|
+ console.warn( 'THREE.Audio: .load has been deprecated. Please use THREE.AudioLoader.' );
|
|
|
+
|
|
|
+ var scope = this;
|
|
|
+
|
|
|
+ var audioLoader = new THREE.AudioLoader();
|
|
|
+
|
|
|
+ audioLoader.load( file, function ( buffer ) {
|
|
|
+
|
|
|
+ scope.setBuffer( buffer );
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
+ return this;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+} );
|
|
|
+
|
|
|
+//
|
|
|
+
|
|
|
THREE.GeometryUtils = {
|
|
|
|
|
|
merge: function ( geometry1, geometry2, materialIndexOffset ) {
|