Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2007, 7:28:46 PM (16 years ago)
Author:
nicolape
Message:

We now have a nice backgroundsound playing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/audio/AudioManager.h

    r409 r419  
    66#include "AudioBuffer.h"
    77#include "AudioSource.h"
     8#include "AudioStream.h"
    89
    910namespace audio
     
    1213        {
    1314        public:
     15
    1416                // Init audio
    1517                AudioManager();
     18
    1619                // Kill audio and set buffers, sources and memory free
    1720                ~AudioManager();
     21
    1822                // Set listener position
    1923                void setPos(std::vector<float> newPosition);
     24
    2025                // Set listener speed
    2126                void setSpeed(std::vector<float> newSpeed);
     27
    2228                // Set listener orientation (first is direction
    2329                // the listener looks at, the second is the direction
    2430                // upwards the listener)
    2531                void setOri(std::vector<float> at, std::vector<float> up);
     32
    2633                // Parses given xml string
    2734                void loadParams();
     35
     36                // Update
     37                void update();
     38
    2839        private:
    2940
     41                // Backgroundsound
     42    AudioStream bgSound;
    3043       
    3144                // Vector containing all audio files
Note: See TracChangeset for help on using the changeset viewer.