Audio 1.0.0
controller.h
Go to the documentation of this file.
1
11#ifndef AUDIOCONTROLLER_H
12#define AUDIOCONTROLLER_H
13#include "bass.h"
14#include <iostream>
15#include <string>
16
23{
24 public:
25 AudioController(int device, int freq);
27 int PlayStream(const std::string& file);
28 int PauseStream(void);
29 int ResumeStream(void);
30 int StopStream(void);
31 int getStreamStatus(void);
32 int IncreasePitch(void);
33 int DecreasePitch(void);
34 int SetStreamSpeed(float speed);
35 float GetBpm(const std::string& path, double start, double end);
36
37 private:
38 int device;
39 int freq;
40 HSTREAM streamHandle;
41 void* ShowError;
42};
43#endif
BASS controller.
Definition: controller.h:23
int SetStreamSpeed(float speed)
Definition: controller.cpp:147
AudioController(int device, int freq)
Controller constructor.
Definition: controller.cpp:19
int StopStream(void)
Stop audio stream.
Definition: controller.cpp:103
int DecreasePitch(void)
Decrease channel pitch.
Definition: controller.cpp:135
float GetBpm(const std::string &path, double start, double end)
Get bpm from file.
Definition: controller.cpp:164
int IncreasePitch(void)
Increase channel pitch.
Definition: controller.cpp:124
int PlayStream(const std::string &file)
Play audio file.
Definition: controller.cpp:47
int ResumeStream(void)
Resume audio stream.
Definition: controller.cpp:90
int getStreamStatus(void)
Definition: controller.cpp:115
~AudioController()
Destructor.
Definition: controller.cpp:37
int PauseStream(void)
Pause audio stream.
Definition: controller.cpp:80