diff pytouhou/lib/sdl.pxd @ 783:ec1e06402a97

Replace SDL2_mixer with the kira crate
author Link Mauve <linkmauve@linkmauve.fr>
date Fri, 21 Nov 2025 10:21:59 +0100
parents 80687f258001
children f73e8524c045
line wrap: on
line diff
--- a/pytouhou/lib/sdl.pxd
+++ b/pytouhou/lib/sdl.pxd
@@ -95,20 +95,6 @@
     cdef void set_alpha(self, Surface alpha_surface) nogil
 
 
-cdef class Music:
-    cdef Mix_Music *music
-
-    cdef void play(self, int loops) nogil
-    cdef void set_loop_points(self, double start, double end) nogil
-
-
-cdef class Chunk:
-    cdef Mix_Chunk *chunk
-
-    cdef void play(self, int channel, int loops) nogil
-    cdef void set_volume(self, float volume) nogil
-
-
 cdef class Font:
     cdef TTF_Font *font
 
@@ -117,17 +103,10 @@
 
 cdef bint init(Uint32 flags) except True
 cdef bint img_init(int flags) except True
-cdef bint mix_init(int flags) except True
 cdef bint ttf_init() except True
 cdef bint gl_set_attribute(SDL_GLattr attr, int value) except True
 cdef Surface load_png(file_)
 cdef Surface create_rgb_surface(int width, int height, int depth, Uint32 rmask=*, Uint32 gmask=*, Uint32 bmask=*, Uint32 amask=*)
-cdef bint mix_open_audio(int frequency, Uint16 format_, int channels, int chunksize) except True
-cdef bint mix_allocate_channels(int numchans) except True
-cdef int mix_volume(int channel, float volume) nogil
-cdef int mix_volume_music(float volume) nogil
-cdef Music load_music(str filename)
-cdef Chunk load_chunk(file_)
 cdef Uint32 get_ticks() nogil
 cdef void delay(Uint32 ms) nogil
 cpdef bint show_simple_message_box(unicode message) except True