/* call-seq: * #mix_channels() -> integer * * **NOTE:** This method is DEPRECATED and will be removed in * Rubygame 3.0. Please use the Rubygame::Sound class instead. * * Returns the number of mixing channels currently allocated. * See also #mix_channels=(). */ VALUE rbgm_mixer_getmixchans(VALUE module) { /* This feature will be removed in Rubygame 3.0. */ rg_deprecated("Rubygame::Mixer", "3.0"); int result; result = Mix_AllocateChannels(-1); return INT2NUM(result); }