summaryrefslogtreecommitdiff
path: root/include/SFML/Audio/Sound.hpp
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@gmx.de>2009-06-14 21:52:32 +0200
committerChristoph Egger <Christoph.Egger@gmx.de>2009-06-14 21:52:32 +0200
commitaf202195872d59432cb74db74696bf1e57906663 (patch)
tree6606f4a90e91811e940f9fbc2e88a43154271939 /include/SFML/Audio/Sound.hpp
parent9f9ee9c9f37ae026eb06e897a313aa26f68bf612 (diff)
Imported Upstream version 1.5+repack1
Diffstat (limited to 'include/SFML/Audio/Sound.hpp')
-rwxr-xr-xinclude/SFML/Audio/Sound.hpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/SFML/Audio/Sound.hpp b/include/SFML/Audio/Sound.hpp
index cced19e..691d633 100755
--- a/include/SFML/Audio/Sound.hpp
+++ b/include/SFML/Audio/Sound.hpp
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2008 Laurent Gomila (laurent.gom@gmail.com)
+// Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
@@ -160,6 +160,16 @@ public :
void SetPosition(const Vector3f& Position);
////////////////////////////////////////////////////////////
+ /// Make the sound's position relative to the listener's
+ /// position, or absolute.
+ /// The default value is false (absolute)
+ ///
+ /// \param Relative : True to set the position relative, false to set it absolute
+ ///
+ ////////////////////////////////////////////////////////////
+ void SetRelativeToListener(bool Relative);
+
+ ////////////////////////////////////////////////////////////
/// Set the minimum distance - closer than this distance,
/// the listener will hear the sound at its maximum volume.
/// The default minimum distance is 1.0
@@ -228,6 +238,15 @@ public :
Vector3f GetPosition() const;
////////////////////////////////////////////////////////////
+ /// Tell if the sound's position is relative to the listener's
+ /// position, or if it's absolute
+ ///
+ /// \return True if the position is relative, false if it's absolute
+ ///
+ ////////////////////////////////////////////////////////////
+ bool IsRelativeToListener() const;
+
+ ////////////////////////////////////////////////////////////
/// Get the minimum distance
///
/// \return Minimum distance for the sound