Mercurial > sdl-ios-xcode
comparison src/audio/arts/SDL_artsaudio.c @ 301:fb4c4c6a2773
Fixed dynamic arts support.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 06 Mar 2002 19:14:17 +0000 |
parents | f6ffac90895c |
children | 583a07ab5444 |
comparison
equal
deleted
inserted
replaced
300:8bdc210ed1de | 301:fb4c4c6a2773 |
---|---|
64 | 64 |
65 static const char *arts_library = ARTSC_DYNAMIC; | 65 static const char *arts_library = ARTSC_DYNAMIC; |
66 static void *arts_handle = NULL; | 66 static void *arts_handle = NULL; |
67 static int arts_loaded = 0; | 67 static int arts_loaded = 0; |
68 | 68 |
69 static int (*SDL_NAME(arts_init))(); | 69 static int (*SDL_NAME(arts_init))(void); |
70 static int (*SDL_NAME(arts_free))(); | 70 static void (*SDL_NAME(arts_free))(void); |
71 static int (*SDL_NAME(arts_play_stream))(); | 71 static arts_stream_t (*SDL_NAME(arts_play_stream))(int rate, int bits, int channels, const char *name); |
72 static int (*SDL_NAME(arts_stream_set))(); | 72 static int (*SDL_NAME(arts_stream_set))(arts_stream_t s, arts_parameter_t param, int value); |
73 static int (*SDL_NAME(arts_stream_get))(); | 73 static int (*SDL_NAME(arts_stream_get))(arts_stream_t s, arts_parameter_t param); |
74 static int (*SDL_NAME(arts_write))(); | 74 static int (*SDL_NAME(arts_write))(arts_stream_t s, const void *buffer, int count); |
75 static int (*SDL_NAME(arts_close_stream))(); | 75 static void (*SDL_NAME(arts_close_stream))(arts_stream_t s); |
76 | |
76 static struct { | 77 static struct { |
77 const char *name; | 78 const char *name; |
78 void **func; | 79 void **func; |
79 } arts_functions[] = { | 80 } arts_functions[] = { |
80 { "arts_init", (void **)&SDL_NAME(arts_init) }, | 81 { "arts_init", (void **)&SDL_NAME(arts_init) }, |