Changeset 20873

Show
Ignore:
Timestamp:
09/26/07 15:10:05 (1 year ago)
Author:
patrick
Message:

Export vrj::SoundManager? from the VR Juggler DLL on Windows, and make sure
that this polymoprhic type is compiled into the correct shared library on
all platforms. If anyone ever wants to extend VR Juggler with a custom Sound
Manager, both of these details are critical.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vrjuggler/vrj/Sound/Makefile.in

    r19729 r20873  
    4545DIRPRFX=        vrj/Sound/ 
    4646 
    47 SRCS=           SoundManagerFactory.cpp \ 
     47SRCS=           SoundManager.cpp        \ 
     48                SoundManagerFactory.cpp \ 
    4849                SoundManagerSonix.cpp 
    4950 
  • juggler/trunk/modules/vrjuggler/vrj/Sound/SoundManager.h

    r20872 r20873  
    3232#include <jccl/RTRC/ConfigElementHandler.h> 
    3333 
    34 #include <boost/concept_check.hpp> 
    3534 
    3635namespace vrj 
     
    4039    * VR Juggler sound manager. 
    4140    */ 
    42    class SoundManager : public jccl::ConfigElementHandler 
     41   class VJ_CLASS_API SoundManager : public jccl::ConfigElementHandler 
    4342   { 
     43   protected: 
     44      SoundManager(); 
     45 
    4446   public: 
     47      virtual ~SoundManager(); 
     48 
    4549      /** 
    4650       * Adds the element to the configuration. 
    4751       * @pre configCanHandle(element) == true 
    4852       */ 
    49       virtual bool configAdd(jccl::ConfigElementPtr element) 
    50       { 
    51          boost::ignore_unused_variable_warning(element); 
    52          return false; 
    53       } 
     53      virtual bool configAdd(jccl::ConfigElementPtr element); 
    5454 
    5555      /** 
     
    5757       * @pre configCanHandle(element) == true 
    5858       */ 
    59       virtual bool configRemove(jccl::ConfigElementPtr element) 
    60       { 
    61          boost::ignore_unused_variable_warning(element); 
    62          return false; 
    63       } 
     59      virtual bool configRemove(jccl::ConfigElementPtr element); 
    6460 
    6561      /** 
     
    6763       * @return true if we can handle the element; false if not. 
    6864       */ 
    69       virtual bool configCanHandle(jccl::ConfigElementPtr element) 
    70       { 
    71          boost::ignore_unused_variable_warning(element); 
    72          return false; 
    73       } 
     65      virtual bool configCanHandle(jccl::ConfigElementPtr element); 
    7466 
    75    public: 
    7667      /** Enables a frame to be drawn. */ 
    77       virtual void update() {} 
     68      virtual void update(); 
    7869 
    7970      /** 
     
    8172       * @post The frame has been rendered. 
    8273       */ 
    83       virtual void sync() {} 
     74      virtual void sync(); 
    8475 
    8576      /** 
     
    8879       * @since 2.3.15 
    8980       */ 
    90       virtual void closeAPI() {} 
     81      void closeAPI(); 
    9182   }; 
    9283} // end namespace 
  • juggler/trunk/vc7/VRJuggler/VRJuggler.vcproj

    r20832 r20873  
    234234                        </File> 
    235235                        <File 
     236                                RelativePath="..\..\modules\vrjuggler\vrj\Sound\SoundManager.cpp"> 
     237                        </File> 
     238                        <File 
    236239                                RelativePath="..\..\modules\vrjuggler\vrj\Sound\SoundManagerFactory.cpp"> 
    237240                        </File> 
  • juggler/trunk/vc8/VRJuggler/VRJuggler.vcproj

    r20832 r20873  
    613613                        </File> 
    614614                        <File 
     615                                RelativePath="..\..\modules\vrjuggler\vrj\Sound\SoundManager.cpp" 
     616                                > 
     617                        </File> 
     618                        <File 
    615619                                RelativePath="..\..\modules\vrjuggler\vrj\Sound\SoundManagerFactory.cpp" 
    616620                                >