Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 1, 2011, 5:10:29 AM (13 years ago)
Author:
rgrieder
Message:

Merged sound5 into sound6 branch.

Location:
code/branches/usability
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability

  • code/branches/usability/src/orxonox/sound/AmbientSound.h

    r7856 r8005  
    2222 *   Author:
    2323 *      Reto Grieder
     24 *     
     25 *   Co-authors:
    2426 *      Kevin Young
    25  *   Co-authors:
    26  *      ...
    2727 *
    2828 */
     
    3131#define _AmbientSound_H__
    3232
    33 #include "OrxonoxPrereqs.h"
     33#include <boost/thread.hpp>
     34
     35#include "sound/SoundPrereqs.h"
    3436
    3537#include "BaseSound.h"
     
    3941{
    4042    /**
    41      * The AmbientSound class is used to play background music. It can not be placed
    42      * directly in a level file, use WorldAmbientSound instead.
     43     * The AmbientSound class implements the non-3D sound, i.e. sound files that are used for atmospheric
     44     * highlighting.
     45     * It interfaces with BaseSound and is controllable by MoodManager.
     46     * Ambient sounds are always cross-faded. New sounds are registered and activated/deactivated as needed.
     47     *
    4348     */
    4449    class _OrxonoxExport AmbientSound : public BaseSound, public MoodListener
     
    6570        ~AmbientSound() { }
    6671
     72        bool doStop();
     73        void doPlay();
     74
    6775    private:
    6876        void preDestroy();
     
    7684        std::string ambientSource_; //!< Analogous to source_, but mood independent
    7785        bool        bPlayOnLoad_;   //!< Play the sound immediately when loaded
     86
     87        boost::thread soundstreamthread_; // hacky solution for streaming
     88        void setStreamSource(const std::string& source);
    7889    };
    7990}
Note: See TracChangeset for help on using the changeset viewer.