|
Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
|
00001 /********************************************************************************
00002 * *
00003 * OpenAL Device adapter class *
00004 * *
00005 *********************************************************************************
00006 * Copyright (C) 2002 by Sander Jansen. All Rights Reserved. *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or *
00009 * modify it under the terms of the GNU Lesser General Public *
00010 * License as published by the Free Software Foundation; either *
00011 * version 2.1 of the License, or (at your option) any later version. *
00012 * *
00013 * This library is distributed in the hope that it will be useful, *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
00016 * Lesser General Public License for more details. *
00017 * *
00018 * You should have received a copy of the GNU Lesser General Public *
00019 * License along with this library; if not, write to the Free Software *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
00021 ********************************************************************************/
00022 #ifdef HAVE_LIBOPENAL
00023 #ifndef FXALDEVICE_H
00024 #define FXALDEVICE_H
00025
00026 #ifndef FXID_H
00027 #include <fox/FXId.h>
00028 using namespace FX;
00029 #endif
00030 namespace FXEX {
00031 class FXALContext;
00032
00033 /**
00034 * FXALDevice is an instance of a real device, as defined as an OpenAL device
00035 */
00036 class FXAPI FXALDevice : public FXId {
00037 FXDECLARE(FXALDevice)
00038 friend class FXALContext;
00039
00040 protected:
00041 void *dev; //OpenAL Device
00042 FXString deviceid; //Device id string
00043
00044 public:
00045 /// create an OpenAL device
00046 FXALDevice(FXApp * a=NULL,FXchar * deviceid="");
00047
00048 /// create resources
00049 virtual void create();
00050
00051 /// destroy resources
00052 virtual void destroy();
00053
00054 /// attach to device
00055 virtual void attach(FXchar *deviceid="");
00056
00057 /// dtor
00058 virtual ~FXALDevice();
00059 };
00060
00061 } // namespace FXEX
00062 #endif // FXALDEVICE_H
00063 #endif