From af202195872d59432cb74db74696bf1e57906663 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sun, 14 Jun 2009 21:52:32 +0200 Subject: Imported Upstream version 1.5+repack1 --- include/SFML/Audio/Sound.hpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'include/SFML/Audio/Sound.hpp') 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. @@ -159,6 +159,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. @@ -227,6 +237,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 /// -- cgit v1.2.3