]> Shamusworld >> Repos - apple2/blob - src/sound.h
4f49e77ffefbca5806ad32eee525933625f4c96f
[apple2] / src / sound.h
1 //
2 // SOUND.H
3 //
4 // by James Hammons
5 // (C) 2004-2018 Underground Software
6 //
7
8 #ifndef __SOUND_H__
9 #define __SOUND_H__
10
11 #include <stdint.h>
12
13 #define SAMPLE_RATE             (48000.0)
14
15 // Global variables (exported)
16
17
18 // Exported functions
19
20 void SoundInit(void);
21 void SoundDone(void);
22 void SoundPause(void);
23 void SoundResume(void);
24 void ToggleSpeaker(void);
25 void WriteSampleToBuffer(void);
26 void VolumeUp(void);
27 void VolumeDown(void);
28 uint8_t GetVolume(void);
29
30 #endif  // __SOUND_H__
31