summaryrefslogtreecommitdiffstats
path: root/src/sound/oalsound/channel.cpp
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-12-19 22:41:16 +0100
committererihel <erihel@gmail.com>2013-12-19 22:46:29 +0100
commitfe3f9ea38cfae89fdd83d4c3fe79ea355f50bce9 (patch)
treeec9e29f8a9ae321c9e5aaa8532e4c87f2dec4d0f /src/sound/oalsound/channel.cpp
parent114cbec8a9859f19d4234659bd4951f540825dd3 (diff)
downloadcolobot-fe3f9ea38cfae89fdd83d4c3fe79ea355f50bce9.tar.gz
colobot-fe3f9ea38cfae89fdd83d4c3fe79ea355f50bce9.tar.bz2
colobot-fe3f9ea38cfae89fdd83d4c3fe79ea355f50bce9.zip
Sound support changes
* removed 2d sound * fixed listener orientation (propably issue #235) * removed unused code and minor refactoring
Diffstat (limited to 'src/sound/oalsound/channel.cpp')
-rw-r--r--src/sound/oalsound/channel.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/sound/oalsound/channel.cpp b/src/sound/oalsound/channel.cpp
index 4d89df5..b053316 100644
--- a/src/sound/oalsound/channel.cpp
+++ b/src/sound/oalsound/channel.cpp
@@ -75,7 +75,7 @@ bool Channel::Play()
}
-bool Channel::SetPan(Math::Vector pos)
+bool Channel::SetPosition(const Math::Vector &pos)
{
if (!m_ready || m_buffer == nullptr)
{
@@ -92,18 +92,6 @@ bool Channel::SetPan(Math::Vector pos)
}
-void Channel::SetPosition(Math::Vector pos)
-{
- m_position = pos;
-}
-
-
-Math::Vector Channel::GetPosition()
-{
- return m_position;
-}
-
-
bool Channel::SetFrequency(float freq)
{
if (!m_ready || m_buffer == nullptr)