Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

include/c++/Sound.H

Go to the documentation of this file.
00001 
00007 //
00008 // The contents of this file are subject to the Mozilla Public License
00009 // Version 1.0 (the "License"); you may not use this file except in
00010 // compliance with the License. You may obtain a copy of the License
00011 // at http://www.mozilla.org/MPL/
00012 // 
00013 // Software distributed under the License is distributed on an "AS IS"
00014 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00015 // the License for the specific language governing rights and
00016 // limitations under the License.
00017 //
00018 // This software was developed as part of the legOS project.
00019 //
00020 // Contributor: Pat Welch (legOS@mousebrains.com)
00021 
00022 #ifndef _Sound_H_
00023 #define _Sound_H_
00024 
00025 #include <config.h>
00026 #include <dsound.h>
00027 
00028 #if defined(CONF_DSOUND)
00029 
00037 class Sound {
00038 public:
00046   static void play(const note_t *notes) {return dsound_play(notes);}
00052   static int playing() {return dsound_playing();}
00057   static void beep() {dsound_system(DSOUND_BEEP);}
00062   static void stop() {dsound_stop();}
00069   static void duration(const unsigned int len) {dsound_set_duration(len);}
00076   static void internote(const unsigned int len) {dsound_set_internote(len);}
00077 };
00078 
00079 #else
00080 #warning Enable CONF_DSOUND to use Sound.H
00081 #endif // CONF_DSOUND
00082 #endif // _Sound_H_

brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Mon Feb 16 21:02:10 2004 for brickOS Kernel Developer by doxygen 1.3.5