Difference between revisions of "BuildingWithOpenAL"

From SfzWiki
Jump to: navigation, search
Line 5: Line 5:
 
* open lugre/src/lugre_sound.cpp  in an editor
 
* open lugre/src/lugre_sound.cpp  in an editor
  
* replace  
+
** replace  
  
 
   #define USE_FMOD 1
 
   #define USE_FMOD 1
 
   //#define USE_OPENAL 1
 
   //#define USE_OPENAL 1
  
* by
+
** by
  
 
   //#define USE_FMOD 1
 
   //#define USE_FMOD 1
 
   #define USE_OPENAL 1
 
   #define USE_OPENAL 1
 +
 +
* open SConstruct in an editor
 +
 +
** replace
 +
  libs = 'fmodex SDL'
 +
** by
 +
  libs = 'SDL'
 +
 +
** repace
 +
  includes = '/usr/local/include/fmodex /usr/include/SDL /usr/include /usr/local/include include src lugre/include lugre/src'
 +
** by
 +
  includes = '/usr/include/SDL /usr/include /usr/local/include include src lugre/include lugre/src'
  
 
* recompile
 
* recompile

Revision as of 17:35, 8 August 2007

you can also try using openal instead of fmod, to do that :

  • delete lugre/src/lugre_sound_fmod.cpp (so scons doesn't try to compile it)
  • open lugre/src/lugre_sound.cpp in an editor
    • replace
 #define USE_FMOD			1
 //#define USE_OPENAL			1
    • by
 //#define USE_FMOD			1
 #define USE_OPENAL			1
  • open SConstruct in an editor
    • replace
 libs = 'fmodex SDL'
    • by
 libs = 'SDL'
    • repace
 includes = '/usr/local/include/fmodex /usr/include/SDL /usr/include /usr/local/include include src lugre/include lugre/src'
    • by
 includes = '/usr/include/SDL /usr/include /usr/local/include include src lugre/include lugre/src'
  • recompile