Bowls
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Audio.h
Go to the documentation of this file.
1 #include <Windows.h>
2 #include <stdio.h>
3 #include <string>
4 #include "lib/bass.h"
5 
11 class Audio
12 {
13 public:
20  Audio(std::string filename, bool loop);
21 
22  ~Audio();
23 
29  void play(bool restart);
30 
34  void pause();
35 private:
36  DWORD chan;
37 
38 };
Audio(std::string filename, bool loop)
Creates an audio container that holds a song and audio channel.
void play(bool restart)
Play the stored audio file.
DWORD chan
Definition: Audio.h:36
void pause()
Pause the stored audio file.
Contains an audio file and the function to play and pause it,.
Definition: Audio.h:11