-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSoundSystem.hpp
More file actions
36 lines (31 loc) · 783 Bytes
/
SoundSystem.hpp
File metadata and controls
36 lines (31 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef SPOTIFY_BACKSTAGE_SOUNDSYSTEM_HPP
#define SPOTIFY_BACKSTAGE_SOUNDSYSTEM_HPP
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#include <vector>
namespace spotify_backstage {
struct EqState;
class SoundSystem
{
public:
SoundSystem();
~SoundSystem();
int getCurrentOutputDevice();
EqState getEqState();
std::vector<std::pair<int, std::string>> getOutputDevices();
void flush();
void setEqOn(bool on);
void setGain(double gain);
void setBass(double bass);
void setMid(double mid);
void setTreble(double treble);
void setOutputDevice(int dev);
bool write(int sample_rate, int num_channels, const int16_t* data, int num_frames);
private:
class Impl;
std::unique_ptr<Impl> impl_;
};
}
#endif