]>
Dogcows Code - chaz/yoink/blob - src/moof/sound.hh
e9d4bcf4f12820a8bd09cceb3f62f9bbefd74d16
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
12 #ifndef _MOOF_SOUND_HH_
13 #define _MOOF_SOUND_HH_
17 * Load and play sounds, current supports ogg vorbis.
22 #include <boost/shared_ptr.hpp>
24 #include <moof/math.hh>
35 explicit sound(const std::string
& name
);
37 void sample(const std::string
& name
);
38 void enqueue(const std::string
& name
);
47 bool is_playing() const;
49 void position(const vector3
& position
);
50 void velocity(const vector3
& velocity
);
51 void gain(scalar gain
);
52 void pitch(scalar pitch
);
53 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
,
65 boost::shared_ptr
<impl
> impl_
;
71 #endif // _MOOF_SOUND_HH_
This page took 0.035375 seconds and 3 git commands to generate.