Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

sound.cpp

Go to the documentation of this file.
00001 /*
00002         $Id: sound.cpp,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 
00015 #ifdef WIN32
00016 #pragma warning (disable:4786)
00017 #endif
00018 
00019 #include <API/Sound/sound.h>
00020 #include <API/Sound/cd_audio.h>
00021 
00022 std::vector<CL_CDDrive *> CL_CDAudio::cd_drives;
00023 
00024 std::list<CL_SoundCard*> CL_Sound::preload_cards;
00025 std::vector<CL_SoundCard*> CL_Sound::cards;
00026 
00027 void CL_Sound::clear_card_preload()
00028 {
00029         CL_Sound::preload_cards.clear();
00030 }
00031 
00032 void CL_Sound::add_card_preload(CL_SoundCard *card)
00033 {
00034         CL_Sound::preload_cards.push_front(card);
00035 }
00036 
00037 void CL_Sound::remove_card_preload(CL_SoundCard *card)
00038 {
00039         CL_Sound::preload_cards.remove(card);
00040 }
00041 
00042 CL_SoundCard *CL_Sound::get_current_card()
00043 {
00044         return cards[0];
00045 }

Generated at Wed Apr 4 19:54:03 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001