@@ -472,7 +472,7 @@ var LibraryOpenAL = {
472
472
// Disconnect from the panner.
473
473
src . gain . disconnect ( ) ;
474
474
475
- src . gain . connect ( AL . currentContext . ctx . destination ) ;
475
+ src . gain . connect ( AL . currentContext . gain ) ;
476
476
}
477
477
} else if ( value === 0 /* AL_FALSE */ ) {
478
478
if ( ! src . panner ) {
@@ -484,7 +484,7 @@ var LibraryOpenAL = {
484
484
panner . rolloffFactor = src . rolloffFactor ;
485
485
panner . setPosition ( src . position [ 0 ] , src . position [ 1 ] , src . position [ 2 ] ) ;
486
486
panner . setVelocity ( src . velocity [ 0 ] , src . velocity [ 1 ] , src . velocity [ 2 ] ) ;
487
- panner . connect ( AL . currentContext . ctx . destination ) ;
487
+ panner . connect ( AL . currentContext . gain ) ;
488
488
489
489
// Disconnect from the default source.
490
490
src . gain . disconnect ( ) ;
@@ -1169,7 +1169,7 @@ var LibraryOpenAL = {
1169
1169
}
1170
1170
} ,
1171
1171
1172
- alGetListenerf : function ( pname , values ) {
1172
+ alGetListenerf : function ( pname , value ) {
1173
1173
if ( ! AL . currentContext ) {
1174
1174
#if OPENAL_DEBUG
1175
1175
console . error ( "alGetListenerf called without a valid context" ) ;
@@ -1178,7 +1178,7 @@ var LibraryOpenAL = {
1178
1178
}
1179
1179
switch ( pname ) {
1180
1180
case 0x100A /* AL_GAIN */ :
1181
- { { { makeSetValue ( 'value' , '0' , 'AL.currentContext.gain.gain' , 'float' ) } } }
1181
+ { { { makeSetValue ( 'value' , '0' , 'AL.currentContext.gain.gain.value ' , 'float' ) } } }
1182
1182
break ;
1183
1183
default :
1184
1184
#if OPENAL_DEBUG
0 commit comments