# File lib/rubygame/deprecated_mixer.rb, line 191
  def self.play( sample, channel_num, repeats )
    Rubygame.deprecated( "Rubygame::Mixer", "3.0" )
    
    result = SDL::Mixer.PlayChannel( channel_num, sample.struct, repeats )

    if( result < 0 )
      raise( Rubygame::SDLError,
             "Error playing sample on channel %d: %s"%
             [channel, SDL.GetError()] )
    end

    return result
  end