PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Mixer/Groups.xs

http://github.com/PerlGameDev/SDL
Unknown | 114 lines | 91 code | 23 blank | 0 comment | 0 complexity | dfebc3c8fc93663a89a4a29e832cd79e MD5 | raw file
  1#include "EXTERN.h"
  2#include "perl.h"
  3#include "XSUB.h"
  4#include "ppport.h"
  5
  6#ifndef aTHX_
  7#define aTHX_
  8#endif
  9
 10#include <SDL.h>
 11
 12#ifdef HAVE_SDL_MIXER
 13#include <SDL_mixer.h>
 14#endif
 15
 16#ifdef HAVE_SMPEG
 17#include <smpeg/smpeg.h>
 18#ifdef HAVE_SDL_MIXER
 19static int sdl_perl_use_smpeg_audio = 0;
 20#endif
 21#endif
 22
 23
 24
 25MODULE = SDL::Mixer::Groups 	PACKAGE = SDL::Mixer::Groups    PREFIX = mixgrp_
 26
 27=for documentation
 28
 29SDL_mixer bindings
 30
 31See: http:/*www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html */
 32
 33=cut
 34
 35#ifdef HAVE_SDL_MIXER
 36
 37int
 38mixgrp_reserve_channels ( number )
 39	int number
 40	CODE:
 41		RETVAL = Mix_ReserveChannels ( number );
 42	OUTPUT:
 43		RETVAL
 44
 45int
 46mixgrp_group_channel ( which, tag )
 47	int which
 48	int tag
 49	CODE:
 50		RETVAL = Mix_GroupChannel(which,tag);
 51	OUTPUT:
 52		RETVAL
 53
 54int
 55mixgrp_group_channels ( from, to, tag )
 56	int from
 57	int to
 58	int tag
 59	CODE:
 60		RETVAL = Mix_GroupChannels(from,to,tag);
 61	OUTPUT:
 62		RETVAL
 63
 64int
 65mixgrp_group_available ( tag )
 66	int tag
 67	CODE:
 68		RETVAL = Mix_GroupAvailable(tag);
 69	OUTPUT:
 70		RETVAL
 71
 72int
 73mixgrp_group_count ( tag )
 74	int tag
 75	CODE:
 76		RETVAL = Mix_GroupCount(tag);
 77	OUTPUT:
 78		RETVAL
 79
 80int
 81mixgrp_group_oldest ( tag )
 82	int tag
 83	CODE:
 84		RETVAL = Mix_GroupOldest(tag);
 85	OUTPUT:
 86		RETVAL
 87
 88int
 89mixgrp_group_newer ( tag )
 90	int tag
 91	CODE:
 92		RETVAL = Mix_GroupNewer(tag);
 93	OUTPUT:
 94		RETVAL
 95
 96int
 97mixgrp_fade_out_group ( which, ms )
 98	int which
 99	int ms
100	CODE:
101		RETVAL = Mix_FadeOutGroup(which,ms);
102	OUTPUT:
103		RETVAL
104
105int
106mixgrp_halt_group ( tag )
107	int tag
108	CODE:
109		RETVAL = Mix_HaltGroup(tag);
110	OUTPUT:
111		RETVAL
112
113
114#endif