Sound.H
Go to the documentation of this file.
1 
7 //
8 // The contents of this file are subject to the Mozilla Public License
9 // Version 1.0 (the "License"); you may not use this file except in
10 // compliance with the License. You may obtain a copy of the License
11 // at http://www.mozilla.org/MPL/
12 //
13 // Software distributed under the License is distributed on an "AS IS"
14 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15 // the License for the specific language governing rights and
16 // limitations under the License.
17 //
18 // This software was developed as part of the legOS project.
19 //
20 // Contributor: Pat Welch (legOS@mousebrains.com)
21 
22 #ifndef _Sound_H_
23 #define _Sound_H_
24 
25 #include <config.h>
26 #include <dsound.h>
27 
28 #if defined(CONF_DSOUND)
29 
37 class Sound {
38 public:
46  static void play(const note_t *notes) {return dsound_play(notes);}
52  static int playing() {return dsound_playing();}
57  static void beep() {dsound_system(DSOUND_BEEP);}
62  static void stop() {dsound_stop();}
69  static void duration(const unsigned int len) {dsound_set_duration(len);}
76  static void internote(const unsigned int len) {dsound_set_internote(len);}
77 };
78 
79 #else
80 #warning Enable CONF_DSOUND to use Sound.H
81 #endif // CONF_DSOUND
82 #endif // _Sound_H_

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

Generated on Sat Mar 15 2014 11:28:19 for brickOS C++ by doxygen 1.8.1.2