Lines Matching defs:SDL_NAME
37 #include "SDL_name.h"
40 #define SDL_NAME(X) X
64 static int (*SDL_NAME(snd_pcm_open))(snd_pcm_t **pcm, const char *name, snd_pcm_stream_t stream, int mode);
65 static int (*SDL_NAME(snd_pcm_close))(snd_pcm_t *pcm);
66 static snd_pcm_sframes_t (*SDL_NAME(snd_pcm_writei))(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
67 static int (*SDL_NAME(snd_pcm_resume))(snd_pcm_t *pcm);
68 static int (*SDL_NAME(snd_pcm_prepare))(snd_pcm_t *pcm);
69 static int (*SDL_NAME(snd_pcm_drain))(snd_pcm_t *pcm);
70 static const char *(*SDL_NAME(snd_strerror))(int errnum);
71 static size_t (*SDL_NAME(snd_pcm_hw_params_sizeof))(void);
72 static size_t (*SDL_NAME(snd_pcm_sw_params_sizeof))(void);
73 static int (*SDL_NAME(snd_pcm_hw_params_any))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
74 static int (*SDL_NAME(snd_pcm_hw_params_set_access))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t access);
75 static int (*SDL_NAME(snd_pcm_hw_params_set_format))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
76 static int (*SDL_NAME(snd_pcm_hw_params_set_channels))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val);
77 static int (*SDL_NAME(snd_pcm_hw_params_get_channels))(const snd_pcm_hw_params_t *params);
78 static unsigned int (*SDL_NAME(snd_pcm_hw_params_set_rate_near))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int *dir);
79 static snd_pcm_uframes_t (*SDL_NAME(snd_pcm_hw_params_set_period_size_near))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t val, int *dir);
80 static snd_pcm_sframes_t (*SDL_NAME(snd_pcm_hw_params_get_period_size))(const snd_pcm_hw_params_t *params);
81 static unsigned int (*SDL_NAME(snd_pcm_hw_params_set_periods_near))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int *dir);
82 static int (*SDL_NAME(snd_pcm_hw_params_get_periods))(snd_pcm_hw_params_t *params);
83 static int (*SDL_NAME(snd_pcm_hw_params))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
86 static int (*SDL_NAME(snd_pcm_sw_params_current))(snd_pcm_t *pcm, snd_pcm_sw_params_t *swparams);
87 static int (*SDL_NAME(snd_pcm_sw_params_set_start_threshold))(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
88 static int (*SDL_NAME(snd_pcm_sw_params_set_avail_min))(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val);
89 static int (*SDL_NAME(snd_pcm_sw_params))(snd_pcm_t *pcm, snd_pcm_sw_params_t *params);
90 static int (*SDL_NAME(snd_pcm_nonblock))(snd_pcm_t *pcm, int nonblock);
91 #define snd_pcm_hw_params_sizeof SDL_NAME(snd_pcm_hw_params_sizeof)
92 #define snd_pcm_sw_params_sizeof SDL_NAME(snd_pcm_sw_params_sizeof)
99 { "snd_pcm_open", (void**)(char*)&SDL_NAME(snd_pcm_open) },
100 { "snd_pcm_close", (void**)(char*)&SDL_NAME(snd_pcm_close) },
101 { "snd_pcm_writei", (void**)(char*)&SDL_NAME(snd_pcm_writei) },
102 { "snd_pcm_resume", (void**)(char*)&SDL_NAME(snd_pcm_resume) },
103 { "snd_pcm_prepare", (void**)(char*)&SDL_NAME(snd_pcm_prepare) },
104 { "snd_pcm_drain", (void**)(char*)&SDL_NAME(snd_pcm_drain) },
105 { "snd_strerror", (void**)(char*)&SDL_NAME(snd_strerror) },
106 { "snd_pcm_hw_params_sizeof", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_sizeof) },
107 { "snd_pcm_sw_params_sizeof", (void**)(char*)&SDL_NAME(snd_pcm_sw_params_sizeof) },
108 { "snd_pcm_hw_params_any", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_any) },
109 { "snd_pcm_hw_params_set_access", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_set_access) },
110 { "snd_pcm_hw_params_set_format", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_set_format) },
111 { "snd_pcm_hw_params_set_channels", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_set_channels) },
112 { "snd_pcm_hw_params_get_channels", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_get_channels) },
113 { "snd_pcm_hw_params_set_rate_near", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_set_rate_near) },
114 { "snd_pcm_hw_params_set_period_size_near", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_set_period_size_near) },
115 { "snd_pcm_hw_params_get_period_size", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_get_period_size) },
116 { "snd_pcm_hw_params_set_periods_near", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_set_periods_near) },
117 { "snd_pcm_hw_params_get_periods", (void**)(char*)&SDL_NAME(snd_pcm_hw_params_get_periods) },
118 { "snd_pcm_hw_params", (void**)(char*)&SDL_NAME(snd_pcm_hw_params) },
119 { "snd_pcm_sw_params_current", (void**)(char*)&SDL_NAME(snd_pcm_sw_params_current) },
120 { "snd_pcm_sw_params_set_start_threshold", (void**)(char*)&SDL_NAME(snd_pcm_sw_params_set_start_threshold) },
121 { "snd_pcm_sw_params_set_avail_min", (void**)(char*)&SDL_NAME(snd_pcm_sw_params_set_avail_min) },
122 { "snd_pcm_sw_params", (void**)(char*)&SDL_NAME(snd_pcm_sw_params) },
123 { "snd_pcm_nonblock", (void**)(char*)&SDL_NAME(snd_pcm_nonblock) },
197 status = SDL_NAME(snd_pcm_open)(&handle, get_audio_device(2), SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
200 SDL_NAME(snd_pcm_close)(handle);
325 status = SDL_NAME(snd_pcm_writei)(pcm_handle, sample_buf, sample_len);
334 status = SDL_NAME(snd_pcm_resume)(pcm_handle);
338 status = SDL_NAME(snd_pcm_prepare)(pcm_handle);
364 SDL_NAME(snd_pcm_drain)(pcm_handle);
365 SDL_NAME(snd_pcm_close)(pcm_handle);
381 status = SDL_NAME(snd_pcm_open)(&pcm_handle, get_audio_device(spec->channels), SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
384 SDL_SetError("Couldn't open audio device: %s", SDL_NAME(snd_strerror)(status));
390 status = SDL_NAME(snd_pcm_hw_params_any)(pcm_handle, hwparams);
392 SDL_SetError("Couldn't get hardware config: %s", SDL_NAME(snd_strerror)(status));
398 status = SDL_NAME(snd_pcm_hw_params_set_access)(pcm_handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED);
400 SDL_SetError("Couldn't set interleaved access: %s", SDL_NAME(snd_strerror)(status));
433 status = SDL_NAME(snd_pcm_hw_params_set_format)(pcm_handle, hwparams, format);
447 status = SDL_NAME(snd_pcm_hw_params_set_channels)(pcm_handle, hwparams, spec->channels);
449 status = SDL_NAME(snd_pcm_hw_params_get_channels)(hwparams);
459 status = SDL_NAME(snd_pcm_hw_params_set_rate_near)(pcm_handle, hwparams, spec->freq, NULL);
461 SDL_SetError("Couldn't set audio frequency: %s", SDL_NAME(snd_strerror)(status));
469 frames = SDL_NAME(snd_pcm_hw_params_set_period_size_near)(pcm_handle, hwparams, frames, NULL);
471 SDL_NAME(snd_pcm_hw_params_set_periods_near)(pcm_handle, hwparams, 2, NULL);
474 status = SDL_NAME(snd_pcm_hw_params)(pcm_handle, hwparams);
476 SDL_SetError("Couldn't set hardware audio parameters: %s", SDL_NAME(snd_strerror)(status));
484 bufsize = SDL_NAME(snd_pcm_hw_params_get_period_size)(hwparams);
485 fragments = SDL_NAME(snd_pcm_hw_params_get_periods)(hwparams);
493 status = SDL_NAME(snd_pcm_sw_params_current)(pcm_handle, swparams);
495 SDL_SetError("Couldn't get software config: %s", SDL_NAME(snd_strerror)(status));
499 status = SDL_NAME(snd_pcm_sw_params_set_start_threshold)(pcm_handle, swparams, 0);
501 SDL_SetError("Couldn't set start threshold: %s", SDL_NAME(snd_strerror)(status));
505 status = SDL_NAME(snd_pcm_sw_params_set_avail_min)(pcm_handle, swparams, frames);
507 SDL_SetError("Couldn't set avail min: %s", SDL_NAME(snd_strerror)(status));
511 status = SDL_NAME(snd_pcm_sw_params)(pcm_handle, swparams);
513 SDL_SetError("Couldn't set software audio parameters: %s", SDL_NAME(snd_strerror)(status));
534 SDL_NAME(snd_pcm_nonblock)(pcm_handle, 0);