Logo Search packages:      
Sourcecode: blender version File versions

SND_DummyDevice.h

/**
 * $Id: SND_DummyDevice.h,v 1.5 2002/12/27 13:10:59 mein Exp $
 *
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
 *
 * 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. The Blender
 * Foundation also sells licenses for use in proprietary software under
 * the Blender License.  See http://www.blender.org/BL/ for information
 * about this.
 *
 * 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.
 *
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
 * All rights reserved.
 *
 * The Original Code is: all of this file.
 *
 * Contributor(s): none yet.
 *
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
 */
#ifndef SND_DUMMYDEVICE
#define SND_DUMMYDEVICE

#include "SND_AudioDevice.h"

00037 class SND_DummyDevice : public SND_AudioDevice
{
public:
      SND_DummyDevice();
      ~SND_DummyDevice();

      bool Init() { return false; }

00045       SND_WaveSlot* LoadSample(const STR_String& samplename,
                                           void* memlocation,
                                           int size) { return NULL; }

00049       void InitListener() {};
00050       void SetListenerGain(float gain) const {};
00051       void SetDopplerVelocity(MT_Scalar dopplervelocity) const {};
00052       void SetDopplerFactor(MT_Scalar dopplerfactor) const {};
00053       void SetListenerRollOffFactor(MT_Scalar rollofffactor) const {};

00055       void MakeCurrent() const {};

00057       void NextFrame() const {};

00059       void SetObjectBuffer(int id, unsigned int buffer) {}; 

00061       int GetPlayState(int id) { return SND_UNKNOWN; }
00062       void PlayObject(int id) {};
00063       void StopObject(int id) const {};
00064       void StopAllObjects() {};
00065       void PauseObject(int id) const {};

00067       void SetObjectLoop(int id, unsigned int loopmode) const {};
00068       void SetObjectLoopPoints(int id, unsigned int loopstart, unsigned int loopend) const {};
00069       void SetObjectPitch(int id, MT_Scalar pitch) const {};
00070       void SetObjectGain(int id, MT_Scalar gain) const {};
00071       void SetObjectMinGain(int id, MT_Scalar mingain) const {};
00072       void SetObjectMaxGain(int id, MT_Scalar maxgain) const {};
00073       void SetObjectRollOffFactor(int id, MT_Scalar rolloff) const {};
00074       void SetObjectReferenceDistance(int id, MT_Scalar distance) const {};

00076       void SetObjectTransform(int id,
                                          const MT_Vector3& position,
                                          const MT_Vector3& velocity,
                                          const MT_Matrix3x3& orientation,    
                                          const MT_Vector3& lisposition,
                                          const MT_Scalar& rollofffactor) const {};
00082       void ObjectIs2D(int id) const {};

00084       void PlayCD(int track) const {};
00085       void PauseCD(bool pause) const {};
00086       void StopCD() const {};
00087       void SetCDPlaymode(int playmode) const {};
00088       void SetCDGain(MT_Scalar gain) const {};

      void StartUsingDSP()    {};
      float* GetSpectrum()    { return NULL; }
      void StopUsingDSP()           {};
};

#endif //SND_DUMMYDEVICE


Generated by  Doxygen 1.6.0   Back to index