@Override
    public void setAttenuation( int model )
    {
        super.setAttenuation( model );
        // make sure we are assigned to a channel:
        if( channel != null && channel.attachedSource == this &&
            channelOpenAL != null && channelOpenAL.ALSource != null )
        {
            // attenuation changed, so update the rolloff factor accordingly
            if( model == SoundSystemConfig.ATTENUATION_ROLLOFF )
                AL10.alSourcef( channelOpenAL.ALSource.get( 0 ),
                                AL10.AL_ROLLOFF_FACTOR, distOrRoll );
            else
                AL10.alSourcef( channelOpenAL.ALSource.get( 0 ),
                                AL10.AL_ROLLOFF_FACTOR, 0.0f );
            checkALError();
        }
    }