00001 /* 00002 $Id: soundbuffer_static_clan.h,v 1.1 2001/03/06 15:09:26 mbn Exp $ 00003 00004 ------------------------------------------------------------------------ 00005 ClanLib, the platform independent game SDK. 00006 00007 This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE 00008 version 2. See COPYING for details. 00009 00010 For a total list of contributers see CREDITS. 00011 00012 ------------------------------------------------------------------------ 00013 00014 File purpose: 00015 Sound card impl. that uses the ClanSound library. 00016 00017 */ 00018 00019 #ifndef header_soundbuffer_static_clan 00020 #define header_soundbuffer_static_clan 00021 00022 #ifdef USE_CLANSOUND 00023 00024 #include "soundcard_clan.h" 00025 #include "Sound/Sound/Generic/soundbuffer_static.h" 00026 00027 class CL_SoundBuffer_Generic; 00028 00029 class CL_CardBuffer_Static_ClanSound : public CL_CardSoundBuffer_Static 00030 { 00031 protected: 00032 CL_SoundCard_ClanSound *card; 00033 short *data; 00034 int num_samples; 00035 CL_SoundBuffer_Generic *owner; 00036 00037 public: 00038 CL_CardBuffer_Static_ClanSound( 00039 CL_SoundCard_ClanSound *card, 00040 CL_StaticSoundProvider *provider, 00041 CL_SoundBuffer_Generic *owner); 00042 00043 virtual ~CL_CardBuffer_Static_ClanSound(); 00044 00045 virtual CL_CardSoundBuffer_Playback *prepare(); 00046 00047 int get_size() { return num_samples; } 00048 short *get_data() { return data; } 00049 00050 CL_SoundBuffer_Generic *get_owner() { return owner; } 00051 }; 00052 00053 #endif /* USE_CLANSOUND */ 00054 00055 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001