From cb6ea2a26f91fe1384bdee6f3223ccddb5b73218 Mon Sep 17 00:00:00 2001 From: Themaister Date: Wed, 25 Aug 2010 22:42:09 +0200 Subject: [PATCH] It compiles ... --- openal.c | 9 +++++---- ssnes.c | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/openal.c b/openal.c index 05582dd2f0..207670873d 100644 --- a/openal.c +++ b/openal.c @@ -19,7 +19,8 @@ #include "driver.h" #include #include -#include +#include +#include #define BUFSIZE 128 @@ -47,7 +48,7 @@ typedef struct al static void* __al_init(const char* device, int rate, int latency) { (void)device; - al_t *al = calloc(1, sizeof(rsd_t)); + al_t *al = calloc(1, sizeof(al_t)); if ( al == NULL ) return NULL; @@ -69,7 +70,7 @@ static void* __al_init(const char* device, int rate, int latency) if (al->buffers == NULL || al->res_buf == NULL) goto error; - alGetSources(1, &al->source); + alGenSources(1, &al->source); alGenBuffers(al->num_buffers, al->buffers); return al; @@ -123,7 +124,7 @@ static bool al_get_buffer(al_t *al, ALuint *buffer) if (al_unqueue_buffers(al)) break; - if (al->nonblocking) + if (al->nonblock) return false; #ifdef _WIN32 diff --git a/ssnes.c b/ssnes.c index 1e9e840b71..5c8bb16135 100644 --- a/ssnes.c +++ b/ssnes.c @@ -39,6 +39,7 @@ extern const audio_driver_t audio_rsound; extern const audio_driver_t audio_oss; extern const audio_driver_t audio_alsa; extern const audio_driver_t audio_roar; +extern const audio_driver_t audio_openal; extern const video_driver_t video_gl; ////////////////////////////////////////////////