1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-06-29 10:35:08 +02:00
doorlockd-mirror/doorlockd/client/wave.h
Ralf Ramsauer 99feb14036 Use aplay command for playing sounds
This basically reverts 5c8ca78c99.
Using libao + sndfile was a bad idea...

Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2016-04-24 22:08:21 +02:00

26 lines
379 B
C++

#ifndef WAVE_H
#define WAVE_H
#include <mutex>
#include <string>
class Wave {
public:
Wave(const std::string &filename);
Wave(const Wave &rhs);
~Wave();
Wave &operator=(const Wave &rhs);
void play() const;
void playAsync() const;
private:
static std::mutex _playMutex;
const std::string _filename;
const std::string _command;
};
#endif