Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

sound.C

Go to the documentation of this file.
00001 //
00002 // The contents of this file are subject to the Mozilla Public License
00003 // Version 1.0 (the "License"); you may not use this file except in
00004 // compliance with the License. You may obtain a copy of the License
00005 // at http://www.mozilla.org/MPL/
00006 // 
00007 // Software distributed under the License is distributed on an "AS IS"
00008 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00009 // the License for the specific language governing rights and
00010 // limitations under the License.
00011 //
00012 // This software was developed as part of the legOS project.
00013 //
00014 // Contributor: Pat Welch (legOS@mousebrains.com)
00015 
00016 // This program beeps once a second
00017 
00018 #include <config.h>
00019 #if defined(CONF_DSOUND)
00020 
00021 #include <c++/Sound.H>
00022 #include <conio.h>
00023 #include <unistd.h>
00024 #include <tm.h>
00025 
00026 int 
00027 main(int argc, 
00028      char **argv) 
00029 {
00030   while (!shutdown_requested()) {
00031     Sound::beep();
00032     cputs ("Beep");
00033     sleep(1);
00034     cls();
00035   }
00036   cls();
00037   
00038   return 0;
00039 }
00040 #else // CONF_DSOUND
00041 #warning sound.C requires CONF_DSOUND
00042 #warning sound demo will do nothing
00043 int
00044 main(int argc,
00045      char **argv)
00046 {
00047   return 0;
00048 }
00049 #endif // CONF_DSOUND

Generated on Fri Feb 25 08:02:35 2005 for brickos by  doxygen 1.3.9.1