Menu

[b84aab]: / src / common / drvsound.h  Maximize  Restore  History

Download this file

57 lines (47 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// This file is part of SmallBASIC
//
// Add-on SB sound driver
//
// This program is distributed under the terms of the GPL v2.0 or later
// Download the GNU Public License (GPL) from www.gnu.org
//
// Copyright(C) 2000 Nicholas Christopoulos
#if !defined(_DRV_SOUND_H)
#define _DRV_SOUND_H
#if defined(__cplusplus)
extern "C" {
#endif
/*
* driver initialization
* returns false on error
*/
int drvsound_init(void);
/*
* restores device state
*/
void drvsound_close(void);
/*
* plays a tone
* frq = frequency
* ms = duration in milliseconds
* vol = volume (0..100)
* bgplay = true for play in background
*/
void drvsound_sound(int frq, int ms, int vol, int bgplay);
/*
* beep!
*/
void drvsound_beep(void);
/*
* clear background queue
*/
void drvsound_clear_queue(void);
/*
* For OSes that does not supports threads, this enables background plays
* (Its called every ~50ms)
*/
void drvsound_event(void);
#if defined(__cplusplus)
}
#endif
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.