Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 87003 Details for
Bug 132814
games-arcade/apricots-0.2.6 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]
apricots-0.2.6-freealut.patch
apricots-0.2.6-freealut.patch (text/plain), 1.56 KB, created by
Tristan Heaven (RETIRED)
on 2006-05-18 11:05:55 UTC
(
hide
)
Description:
apricots-0.2.6-freealut.patch
Filename:
MIME Type:
Creator:
Tristan Heaven (RETIRED)
Created:
2006-05-18 11:05:55 UTC
Size:
1.56 KB
patch
obsolete
>--- apricots/apricots.cpp >+++ apricots/apricots.cpp >@@ -16,6 +16,7 @@ > int main(int, char**){ > #endif > >+atexit(SDL_Quit); > // Initialize data > gamedata g; > init_data(g); > >--- apricots/sampleio.cpp >+++ apricots/sampleio.cpp >@@ -74,12 +74,9 @@ > alListenerfv(AL_ORIENTATION, front ); > > // Load in samples >- ALvoid* data = malloc(5 * (512 * 3) * 1024); > alGenBuffers(numsamples, samples); > > for (int i = 0; i < numsamples; i++){ >- ALsizei freq; >- ALboolean fileok; > // Evil OpenAL portability fix done here > #ifdef _WIN32 > ALenum format; >@@ -87,15 +84,12 @@ > alutLoadWAVFile(filenames[i],&format,&data,&filelen,&freq,&trash); > fileok = (alGetError() == AL_NO_ERROR); > #else >- ALsizei format; >- ALsizei trash; >- fileok = alutLoadWAV(filenames[i],&data,&format,&filelen,&trash,&freq); >+ samples[i] = alutCreateBufferFromFile(filenames[i]); > #endif >- if (!fileok){ >+ if (samples[i] == AL_NONE){ > cerr << "sampleio: could not open " << filenames[i] << endl; > exit(1); > } >- alBufferData(samples[i], format, data, filelen, freq); > } > > // Generate Sources >@@ -107,7 +101,6 @@ > alSourcefv(sources[j], AL_ORIENTATION, back ); > } > >- free(data); > > } > > >--- configure.in >+++ configure.in >@@ -100,7 +100,8 @@ > > dnl Check for OpenAL > AC_CHECK_HEADER(AL/al.h,[CXXFLAGS="$CXXFLAGS -DAP_AUDIO_OPENAL"]) >-AC_CHECK_LIB( openal, alutInit) >+AC_CHECK_LIB( openal, alGetError) >+AC_CHECK_LIB( alut, alutInit) > > KDE_CHECK_EXTRA_LIBS > all_libraries="$all_libraries $USER_LDFLAGS"
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 132814
: 87003