[freespace2] CVS build problem (OpenAL + amd64) and questions
fatty
fatty at gsklan.de
Sun Nov 13 18:52:54 EST 2005
fatty wrote:
> fatty wrote:
>
>> For everyone, who doesn't want to downgrade to OpenAL 1.0 I have
>> attached the modified patch.
>
>
> Shame on me! I forgot to attach the patch.
>
> Some additional notes: With that patch you are still able to compile
> against OpenAL 1.0, but it defaults to 1.1 when found.
>
> btw: ds_sound_context on line 598 should be from type ALCcontext instead
> of void to conform to the OpenAL-API (both, 1.0 and 1.1). I have that
> allready changed in my patch.
>
>
> Stephan "fatty" Wurm
>
>
> ------------------------------------------------------------------------
>
> Index: src/sound/ds.cpp
> ===================================================================
> RCS file: /cvs/cvsroot/freespace2/src/sound/ds.cpp,v
> retrieving revision 1.24
> diff -u -r1.24 ds.cpp
> --- src/sound/ds.cpp 13 Aug 2005 17:01:34 -0000 1.24
> +++ src/sound/ds.cpp 1 Oct 2005 14:57:22 -0000
> @@ -595,7 +595,7 @@
> #endif
>
> ALCdevice *ds_sound_device = NULL;
> -void *ds_sound_context = NULL;
> +ALCcontext *ds_sound_context = NULL;
>
>
> //--------------------------------------------------------------------------
> @@ -1501,7 +1501,11 @@
> nprintf(( "Sound", "SOUND ==> Initializing OpenAL...\n" ));
>
> // load OpenAL
> +#ifdef AL_VERSION_1_1
> + ds_sound_device = alcOpenDevice( (const ALCchar*)initStr );
> +#else
> ds_sound_device = alcOpenDevice( initStr );
> +#endif
>
> if (ds_sound_device == NULL) {
> nprintf(("Sound", "SOUND ==> Couldn't open OpenAL device\n"));
> @@ -1560,7 +1564,11 @@
> #endif
>
> // make sure we can actually use AL_BYTE_LOKI (Mac OpenAL doesn't have it)
> +#ifdef AL_VERSION_1_1
> + AL_play_position = alIsExtensionPresent( (const ALchar*)"AL_LOKI_play_position" );
> +#else
> AL_play_position = alIsExtensionPresent( (ALubyte*)"AL_LOKI_play_position" );
> +#endif
>
> // Initialize DirectSound3D. Since software performance of DirectSound3D is unacceptably
> // slow, we require the voice manger (a DirectSound extension) to be present. The
After the latest changes in OpenAL cvs I finally got FreeSpace 1 working
with OpenAL 1.1.
I only had to use my simple patch and everything was fine that time :)
mfG fatty
More information about the freespace2
mailing list