CrystalSpace

Public API Reference

isndsys/ss_renderer.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2004 by Andrew Mann
00003     Copyright (C) 1998-2000 by Jorrit Tyberghein
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public
00016     License along with this library; if not, write to the Free
00017     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 */
00019 
00020 #ifndef __CS_SNDSYS_RENDERER_H__
00021 #define __CS_SNDSYS_RENDERER_H__
00022 
00027 #include "csutil/scf.h"
00028 
00032 struct csSndSysSoundFormat;
00033 struct iSndSysData;
00034 struct iSndSysStream;
00035 struct iSndSysSource;
00036 struct iSndSysListener;
00037 
00038 SCF_VERSION (iSndSysRenderer, 0, 1, 0);
00039 
00040 #ifndef CS_SNDSYS_SOURCE_DISTANCE_INFINITE
00041 #define CS_SNDSYS_SOURCE_DISTANCE_INFINITE -1.0f
00042 #endif
00043 
00044 #define CS_SNDSYS_SOURCE_STOPPED    0
00045 #define CS_SNDSYS_SOURCE_PLAYING    1
00046 
00047 
00054 struct iSndSysRenderer : public iBase
00055 {
00057   virtual void SetVolume (float vol) = 0;
00058 
00060   virtual float GetVolume () = 0;
00061 
00066   virtual csPtr<iSndSysStream> CreateStream(iSndSysData* data,
00067         int mode3d) = 0;
00068 
00070   virtual csPtr<iSndSysSource> CreateSource(iSndSysStream* stream) = 0;
00071 
00073   virtual bool RemoveStream(iSndSysStream* stream) = 0;
00074 
00076   virtual bool RemoveSource(iSndSysSource* source) = 0;
00077 
00079   virtual csRef<iSndSysListener> GetListener () = 0;
00080 };
00081 
00084 #endif // __CS_SNDSYS_RENDERER_H__

Generated for Crystal Space by doxygen 1.4.6