mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-11-01 06:57:04 +01:00
99feb14036
This basically reverts 5c8ca78c99
.
Using libao + sndfile was a bad idea...
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
26 lines
379 B
C++
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
|