summaryrefslogtreecommitdiff
path: root/src/speaker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/speaker.c')
-rw-r--r--src/speaker.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/speaker.c b/src/speaker.c
new file mode 100644
index 0000000..b4bef73
--- /dev/null
+++ b/src/speaker.c
@@ -0,0 +1,20 @@
+#include "speaker.h"
+
+Sound s;
+
+void SpeakerInit(){
+ InitAudioDevice(); // Initialize audio device
+ s=LoadSound(SPEAKER_AUDIO_FILE);
+}
+
+void SpeakerOn(){
+ PlaySound(s);
+}
+
+void SpeakerOff(){
+ StopSound(s);
+}
+
+void SpeakerFinish(){
+ CloseAudioDevice();
+}