Etterna 0.74.4
Loading...
Searching...
No Matches
RageSoundDriver_OSS.h
1#ifndef RAGE_SOUND_WAVEOUT
2#define RAGE_SOUND_WAVEOUT
3
4#include "RageSoundDriver.h"
5#include "RageUtil/Misc/RageThreads.h"
6#include "RageUtil/Misc/RageTimer.h"
7
9{
10 int fd;
11
12 bool shutdown;
13 int last_cursor_pos;
14 int samplerate;
15
16 static int MixerThread_start(void* p);
17 void MixerThread();
18 RageThread MixingThread;
19
20 static std::string CheckOSSVersion(int fd);
21
22 public:
23 bool GetData();
24 int GetSampleRate() const { return samplerate; }
25
26 /* virtuals: */
27 int64_t GetPosition() const;
28 float GetPlayLatency() const;
29 void SetupDecodingThread();
30
32 std::string Init();
34};
35
36#endif
Definition RageSoundDriver_OSS.h:9
Definition RageSoundDriver.h:15
Thread, mutex, semaphore, and event classes.
Definition RageThreads.h:155