Revision: 7666
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7666&view=rev
Author:   natepak
Date:     2009-05-14 18:59:59 +0000 (Thu, 14 May 2009)

Log Message:
-----------
Added OpenALAPI

Added Paths:
-----------
    code/gazebo/trunk/server/OpenALAPI.cc
    code/gazebo/trunk/server/OpenALAPI.hh

Added: code/gazebo/trunk/server/OpenALAPI.cc
===================================================================
--- code/gazebo/trunk/server/OpenALAPI.cc                               (rev 0)
+++ code/gazebo/trunk/server/OpenALAPI.cc       2009-05-14 18:59:59 UTC (rev 
7666)
@@ -0,0 +1,43 @@
+#include "OpenAL.hh"
+#include "OpenALAPI.hh"
+
+using namespace gazebo;
+
+////////////////////////////////////////////////////////////////////////////////
+/// Constructor
+OpenALAPI::OpenALAPI()
+{
+}
+
+////////////////////////////////////////////////////////////////////////////////
+/// Destructor
+OpenALAPI::~OpenALAPI()
+{
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// Load
+void OpenALAPI::Load(XMLConfigNode *node)
+{
+#ifdef HAVE_OPENAL
+  OpenAL::Instance()->Load( node );
+#endif
+}
+
+////////////////////////////////////////////////////////////////////////////////
+/// Initialize
+void OpenALAPI::Init()
+{
+#ifdef HAVE_OPENAL
+  OpenAL::Instance()->Init( );
+#endif
+}
+
+////////////////////////////////////////////////////////////////////////////////
+/// Finalize
+void OpenALAPI::Fini()
+{
+#ifdef HAVE_OPENAL
+  OpenAL::Instance()->Fini( );
+#endif
+}

Added: code/gazebo/trunk/server/OpenALAPI.hh
===================================================================
--- code/gazebo/trunk/server/OpenALAPI.hh                               (rev 0)
+++ code/gazebo/trunk/server/OpenALAPI.hh       2009-05-14 18:59:59 UTC (rev 
7666)
@@ -0,0 +1,48 @@
+/*
+ *  Gazebo - Outdoor Multi-Robot Simulator
+ *  Copyright (C) 2003
+ *     Nate Koenig & Andrew Howard
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ */
+/* Desc: OpenAL API
+ * Author: Nate Koenig
+ * Date: 14 May 2009
+ * SVN: $Id$
+ */
+
+namespace gazebo
+{
+  class XMLConfigNode;
+
+  class OpenALAPI
+  {
+    /// \brief Constructor
+    public: OpenALAPI();
+
+    /// \brief Destructor
+    public: virtual ~OpenALAPI();
+
+    /// \brief Load
+    public: void Load(XMLConfigNode *node);
+
+    /// \brief Initialize
+    public: void Init();
+
+    /// \brief Finalize
+    public: void Fini();
+  };
+}


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to