Code Search for Developers
 
 
  

device.h from NeoEngineNG at Krugle


Show device.h syntax highlighted

/***************************************************************************
                       device.h  -  ALSA sound device
                             -------------------
    begin                : Thu Mar 18 2004
    copyright            : (C) 2004 by Reality Rift Studios
    email                : mattias@realityrift.com
 ***************************************************************************

 The contents of this file are subject to the Mozilla Public License Version
 1.1 (the "License"); you may not use this file except in compliance with
 the License. You may obtain a copy of the License at 
 http://www.mozilla.org/MPL/

 Software distributed under the License is distributed on an "AS IS" basis,
 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 for the specific language governing rights and limitations under the
 License.

 The Original Code is the NeoEngine, NeoDevALSA, device.h

 The Initial Developer of the Original Code is Mattias Jansson.
 Portions created by Mattias Jansson are Copyright (C) 2004
 Reality Rift Studios. All Rights Reserved.

 ***************************************************************************/

#ifndef __NEALSA_DEVICE_H
#define __NEALSA_DEVICE_H


#include <neoengine/audio.h>


namespace NeoALSA
{


/**
  * \brief ALSA device implementation
  * \author Mattias Jansson (mattias@realityrift.com)
  */
class AudioDevice : public NeoEngine::AudioDevice
{
	friend class Sound;

	protected:



	public:

		/**
		* \param pkFileManager                             File manager, will use core global object if null (default)
		*/
		                                                   AudioDevice( NeoEngine::FileManager *pkFileManager = 0 );

		/**
		*/
		virtual                                           ~AudioDevice();

		/**
		* Open the audio device
		* \param rkWindow                                  Window to initialize sound device in
		*/
		virtual bool                                       Open( const NeoEngine::RenderWindow &rkWindow );

		/**
		* Close the audio device
		*/
		virtual void                                       Close();

		/**
		* Load a sound file. Implement in derived class
		* \param rstrFilename                              File name
		* \return                                          Ptr to sound
		*/
		virtual NeoEngine::Sound                          *LoadSound( const std::string &rstrFilename );
};


};

#endif




See more files for this project here

NeoEngineNG

NeoenEngine NG (Next Generation) is the evolution of neoengine one,it\'s a different development from NeoEngine2, it\'s a direct inherits from NeoEngine one.\n

Project homepage: http://sourceforge.net/projects/neoengineng
Programming language(s): C,C++
License: other

  Makefile.am
  SConscript
  device.cpp
  device.h
  glue.cpp
  link.h
  sound.cpp
  sound.h