Mercurial > touhou
comparison pytouhou/lib/sdl.pxd @ 421:b1248bab2d0f
Add back music and SFX playback using SDL_mixer instead of pyglet, and add FLAC and Vorbis support.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 16 Jul 2013 21:07:15 +0200 |
parents | 3a7b36324611 |
children | 52829ebe2561 |
comparison
equal
deleted
inserted
replaced
420:3a7b36324611 | 421:b1248bab2d0f |
---|---|
121 int IMG_INIT_PNG | 121 int IMG_INIT_PNG |
122 | 122 |
123 int IMG_Init(int flags) | 123 int IMG_Init(int flags) |
124 void IMG_Quit() | 124 void IMG_Quit() |
125 SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) | 125 SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) |
126 | |
127 | |
128 cdef extern from "SDL_mixer.h": | |
129 ctypedef enum: | |
130 MIX_DEFAULT_FORMAT | |
131 | |
132 ctypedef struct Mix_Music: | |
133 pass | |
134 | |
135 ctypedef struct Mix_Chunk: | |
136 pass | |
137 | |
138 int Mix_Init(int flags) | |
139 void Mix_Quit() | |
140 | |
141 int Mix_OpenAudio(int frequency, Uint16 format_, int channels, int chunksize) | |
142 void Mix_CloseAudio() | |
143 | |
144 int Mix_AllocateChannels(int numchans) | |
145 | |
146 Mix_Music *Mix_LoadMUS(const char *filename) | |
147 Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc) | |
148 | |
149 void Mix_FreeMusic(Mix_Music *music) | |
150 void Mix_FreeChunk(Mix_Chunk *chunk) | |
151 | |
152 int Mix_PlayMusic(Mix_Music *music, int loops) | |
153 #int Mix_SetLoopPoints(Mix_Music *music, double start, double end) | |
154 | |
155 int Mix_Volume(int channel, int volume) | |
156 int Mix_VolumeChunk(Mix_Chunk *chunk, int volume) | |
157 int Mix_VolumeMusic(int volume) | |
158 | |
159 int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops) |