# File lib/rubygame/sound.rb, line 365 def fading?( direction=:either ) return false unless channel_active? case direction when :in SDL::Mixer.FadingChannel( @channel ) == SDL::Mixer::FADING_IN when :out SDL::Mixer.FadingChannel( @channel ) == SDL::Mixer::FADING_OUT else SDL::Mixer.FadingChannel( @channel ) != SDL::Mixer::NO_FADING end end