Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 86650 Details for
Bug 132819
games-sports/ultimatestunts needs patch for openal/freealut split
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ultimatestunts-0.6.1-freealut.patch
ultimatestunts-0.6.1-freealut.patch (text/plain), 1.62 KB, created by
Tristan Heaven (RETIRED)
on 2006-05-12 06:23:07 UTC
(
hide
)
Description:
ultimatestunts-0.6.1-freealut.patch
Filename:
MIME Type:
Creator:
Tristan Heaven (RETIRED)
Created:
2006-05-12 06:23:07 UTC
Size:
1.62 KB
patch
obsolete
>--- configure >+++ configure >@@ -6908,7 +6908,7 @@ > echo "$as_me:$LINENO: result: $ac_cv_lib_openal_alGetError" >&5 > echo "${ECHO_T}$ac_cv_lib_openal_alGetError" >&6 > if test $ac_cv_lib_openal_alGetError = yes; then >- soundlibs="-lopenal $soundlibs";cat >>confdefs.h <<\_ACEOF >+ soundlibs="-lopenal -lalut $soundlibs";cat >>confdefs.h <<\_ACEOF > #define HAVE_LIBOPENAL 1 > _ACEOF > >--- ultimatestunts/sndsample.cpp >+++ ultimatestunts/sndsample.cpp >@@ -96,10 +96,7 @@ > //data (and default values) > void *wave = NULL; > ALsizei >- format = AL_FORMAT_MONO16, >- size = 0, >- bits = 0, >- freq = 44100; >+ size = 0; > > CString extension = realfile.mid(realfile.length() - 4); > extension.toLower(); >@@ -108,7 +105,7 @@ > { > //the loading proc > ALboolean (*alutLoadVorbis)(ALuint, ALvoid *, ALint) = >- (ALboolean (*)(ALuint, ALvoid *, ALint))alGetProcAddress((ALubyte *) VORBISFUNC); >+ (ALboolean (*)(ALuint, ALvoid *, ALint))alGetProcAddress(VORBISFUNC); > > if(alutLoadVorbis == NULL) > { >@@ -134,7 +131,7 @@ > { > //the loading proc > ALboolean (*alutLoadMP3)(ALuint, ALvoid *, ALint) = >- (ALboolean (*)(ALuint, ALvoid *, ALint))alGetProcAddress((ALubyte *) MP3FUNC); >+ (ALboolean (*)(ALuint, ALvoid *, ALint))alGetProcAddress(MP3FUNC); > > if(alutLoadMP3 == NULL) > { >@@ -158,9 +155,9 @@ > } > else //default: load as wave file > { >- alGenBuffers(1, &m_Buffer); >- alutLoadWAV(realfile.c_str(), &wave, &format, &size, &bits, &freq); >- alBufferData(m_Buffer, format, wave, size, freq); >+ m_Buffer = alutCreateBufferFromFile(realfile.c_str()); >+ if(m_Buffer == AL_NONE) >+ printf("alutCreateBufferFromFile failed\n"); > } > > free(wave);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 132819
: 86650