static mrb_value mrb_sdl2_mixer_group_newer(mrb_state *mrb, mrb_value self) { mrb_int tag; mrb_get_args(mrb, "i", &tag); return mrb_fixnum_value(Mix_GroupNewer(tag)); }
static int lua_Mix_GroupNewer(State & state){ Stack * stack = state.stack; int tag = -1; if (stack->is<LUA_TNUMBER>(1)){ tag = stack->to<int>(1); } int result = Mix_GroupNewer(tag); if (result >= 0){ stack->push<int>(result); }else{ stack->push<bool>(false); } return 1; }
int SDLAudio::NewestGROUP(std::string name) { /** Check to see if we've created it */ SListIterator<SGZChanGroup*> GroupListITR = GroupList.GetIterator(); for( GroupListITR.Start(); GroupListITR.Valid(); GroupListITR.Forth() ) if((GroupListITR.Item()->Name.compare(name))==0) { return Mix_GroupNewer(GroupListITR.Item()->groupNum); } SGZLogger.warn("AudioMAN: Group \"%s\" doesn't exist!\n", name.c_str()); return 0; }