Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 377 for code/branches


Ignore:
Timestamp:
Dec 4, 2007, 3:11:29 PM (17 years ago)
Author:
nicolape
Message:

Added tardis alut dir and changed cmake to load all audio stuff from system libs

Location:
code/branches/audio
Files:
1 added
3 deleted
7 edited
4 moved

Legend:

Unmodified
Added
Removed
  • code/branches/audio/CMakeLists.txt

    r350 r377  
    5050FIND_PACKAGE(Boost)
    5151FIND_PACKAGE(OpenAL)
    52 FIND_PACKAGE(ALUT)      # Only for testing on my machine
     52FIND_PACKAGE(ALUT)
    5353
    5454#Sets the search paths for the linking
    55 LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR} ${CEGUI_LIB_DIR} ${CEGUI_OGRE_LIB_DIR} ${ENet_LIBRARY} ${OPENAL_LIB_DIR} ${ALUT_LIB_DIR} ${Boost_LIBRARY_DIRS} ${OPENAL_LIBRARY} core objects loader network weapon classHierarchy audio openal alut)
     55LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR} ${CEGUI_LIB_DIR} ${CEGUI_OGRE_LIB_DIR} ${ENet_LIBRARY} ${Boost_LIBRARY_DIRS} ${OPENAL_LIBRARY} ${ALUT_LIBRARY} core objects loader network weapon classHierarchy audio)
    5656#Sets the search path for include files
    57 INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR} ${CEGUI_INCLUDE_DIR} ${CEGUI_OGRE_INCLUDE_DIR} ${ENet_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${OPENAL_INCLUDE_DIR})
     57INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR} ${CEGUI_INCLUDE_DIR} ${CEGUI_OGRE_INCLUDE_DIR} ${ENet_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${OPENAL_INCLUDE_DIR} ${ALUT_INCLUDE_DIR})
    5858
    5959#add main source dir
  • code/branches/audio/cmake/FindOpenAL.cmake

    r345 r377  
    99# used in building OpenAL.
    1010#
     11
    1112# Created by Eric Wing. This was influenced by the FindSDL.cmake module.
    1213# On OSX, this will prefer the Framework version (if found) over others.
     
    1617# But for now, we have to look around.
    1718# Other (Unix) systems should be able to utilize the non-framework paths.
    18 FIND_PATH(OPENAL_INCLUDE_DIR al.h
     19FIND_PATH(OPENAL_INCLUDE_DIR AL/al.h
    1920  $ENV{OPENALDIR}/include
    2021  ~/Library/Frameworks/OpenAL.framework/Headers
    2122  /Library/Frameworks/OpenAL.framework/Headers
    2223  /System/Library/Frameworks/OpenAL.framework/Headers # Tiger
    23   /usr/pack/openal-0.0.8-cl/include/AL # Tardis specific hack
    24   /usr/local/include/AL
     24  /usr/pack/openal-0.0.8-cl/include # Tardis specific hack
     25  /usr/local/include/
    2526  /usr/local/include/OpenAL
    2627  /usr/local/include
    27   /usr/include/AL
     28  /usr/include/
    2829  /usr/include/OpenAL
    2930  /usr/include
    30   /sw/include/AL # Fink
     31  /sw/include # Fink
    3132  /sw/include/OpenAL
    3233  /sw/include
    33   /opt/local/include/AL # DarwinPorts
     34  /opt/local/include # DarwinPorts
    3435  /opt/local/include/OpenAL
    3536  /opt/local/include
    36   /opt/csw/include/AL # Blastwave
     37  /opt/csw/include # Blastwave
    3738  /opt/csw/include/OpenAL
    3839  /opt/csw/include
    39   /opt/include/AL
     40  /opt/include
    4041  /opt/include/OpenAL
    4142  /opt/include
     
    6970    $ENV{OPENALDIR}/lib
    7071    $ENV{OPENALDIR}/libs
     72                /usr/pack/openal-0.0.8-cl/i686-debian-linux3.1/lib
    7173    /usr/local/lib
    7274    /usr/lib
     
    8183IF(OPENAL_LIBRARY)
    8284  SET(OPENAL_FOUND "YES")
     85        MESSAGE(STATUS "OpenAL was found. Libdir ${OPENAL_LIBRARY} Includedir ${OPENAL_INCLUDE_DIR}")
    8386ENDIF(OPENAL_LIBRARY)
    8487
  • code/branches/audio/src/audio

    • Property svn:ignore set to
      cmake_install.cmake
      CMakeFiles
      libaudio.a
      Makefile
  • code/branches/audio/src/audio/AudioBuffer.h

    r350 r377  
    66#include <vector>
    77
    8 #include "../../include/AL/al.h"
    9 #include "../../include/AL/alc.h"
    10 #include "../../include/AL/alut.h"
     8#include <AL/al.h>
     9#include <AL/alc.h>
     10#include <AL/alut.h>
    1111
    1212namespace audio
  • code/branches/audio/src/audio/AudioManager.h

    r349 r377  
    66#include <vector>
    77
    8 #include "../../include/AL/al.h"
    9 #include "../../include/AL/alc.h"
    10 #include "../../include/AL/alut.h"
     8#include <AL/al.h>
     9#include <AL/alc.h>
     10#include <AL/alut.h>
    1111
    1212#include "AudioBuffer.h"
     
    3030                // upwards the listener)
    3131                void setOri(std::vector<float> at, std::vector<float> up);
     32                // Parses given xml string
     33                void loadParams();
    3234        private:
     35
     36       
    3337                // Vector containing all audio files
    3438                std::vector<AudioBuffer> buffers;
  • code/branches/audio/src/audio/AudioSource.h

    r349 r377  
    66#include <vector>
    77
    8 #include "../../include/AL/al.h"
    9 #include "../../include/AL/alc.h"
    10 #include "../../include/AL/alut.h"
     8#include <AL/al.h>
     9#include <AL/alc.h>
     10#include <AL/alut.h>
    1111
    1212namespace audio
  • code/branches/audio/src/audio/_AudioObject.h

    r347 r377  
    3333                ALfloat ListenerVel[3];
    3434                ALfloat ListenerOri[6];
    35         };
    36        
    37        
    38        
    39        
    40        
     35        };     
    4136}
    4237
  • code/branches/audio/src/orxonox/CMakeLists.txt

    r334 r377  
    66ADD_EXECUTABLE(../../bin/main ${SRC_FILES} ${INC_FILES})
    77
    8 TARGET_LINK_LIBRARIES(../../bin/main ${OGRE_LIBRARIES} ${OIS_LIBRARIES} ${OPENAL_LIBRARIES} loader audio)
     8TARGET_LINK_LIBRARIES(../../bin/main ${OGRE_LIBRARIES} ${OIS_LIBRARIES} loader audio)
    99
    1010INCLUDE_DIRECTORIES(..)
Note: See TracChangeset for help on using the changeset viewer.