]>
Dogcows Code - chaz/yoink/blob - src/moof/sound.hh
1f7fcfe788c1e33d5fd44975f4d26e8d98cf8400
2 /*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
3 **] All rights reserved.
5 * Distributable under the terms and conditions of the 2-clause BSD license;
6 * see the file COPYING for a complete text of the license.
8 *****************************************************************************/
10 #ifndef _MOOF_SOUND_HH_
11 #define _MOOF_SOUND_HH_
15 * Load and play sounds, currently supports ogg vorbis.
20 #include <boost/shared_ptr.hpp>
22 #include <moof/math.hh>
28 // forward declarations
36 explicit sound(const std::string
& name
);
38 void sample(const std::string
& name
);
39 void queue(const std::string
& name
);
46 bool is_playing() const;
48 void buffer_size(scalar seconds
);
50 void position(const vector3
& position
);
51 void velocity(const vector3
& velocity
);
52 void gain(scalar gain
);
53 void pitch(scalar pitch
);
54 void loop(bool looping
);
56 static void listener_position(const vector3
& position
);
57 static void listener_velocity(const vector3
& velocity
);
58 static void listener_orientation(const vector3
& forward
, const vector3
& up
);
60 static void import(script
& script
, const std::string
& nspace
= "");
65 boost::shared_ptr
<impl
> impl_
;
71 #endif // _MOOF_SOUND_HH_
This page took 0.059351 seconds and 4 git commands to generate.