summaryrefslogtreecommitdiff
path: root/src/speaker.c
blob: 051902b064a5580ce784943a7b16d33c98341265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "speaker.h"
#include "beep.h"

Sound s;

void SpeakerInit(){
  InitAudioDevice(); // Initialize audio device
  Wave w=LoadWaveFromMemory(".mp3", beep, sizeof(beep));
  s=LoadSoundFromWave(w);
}

void SpeakerPlay(){
  PlaySound(s);
}

void SpeakerStop(){
  StopSound(s);
}

void SpeakerFinish(){
  CloseAudioDevice();
}