This commit is contained in:
Erik Hofman
2010-05-08 11:19:01 +02:00
parent 401c88adbb
commit b6ef5a0a3d
+1 -1
View File
@@ -147,7 +147,7 @@ void SGSampleGroup::update( double dt ) {
ALboolean looping = sample->is_looping() ? AL_TRUE : AL_FALSE; ALboolean looping = sample->is_looping() ? AL_TRUE : AL_FALSE;
alSourcei( source, AL_LOOPING, looping ); alSourcei( source, AL_LOOPING, looping );
alSourcef( source, AL_ROLLOFF_FACTOR, 0.3 ); alSourcef( source, AL_ROLLOFF_FACTOR, 0.3 );
alSourcei( source, AL_SOURCE_RELATIVE, AL_FALSE ); alSourcei( source, AL_SOURCE_RELATIVE, AL_TRUE );
alSourcePlay( source ); alSourcePlay( source );
testForALError("sample play"); testForALError("sample play");
} else { } else {