Etterna
0.74.4
Loading...
Searching...
No Matches
src
arch
Sound
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
8
class
RageSoundDriver_OSS
:
public
RageSoundDriver
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
31
RageSoundDriver_OSS
();
32
std::string Init();
33
~RageSoundDriver_OSS
();
34
};
35
36
#endif
RageSoundDriver_OSS
Definition
RageSoundDriver_OSS.h:9
RageSoundDriver
Definition
RageSoundDriver.h:15
RageThread
Thread, mutex, semaphore, and event classes.
Definition
RageThreads.h:155
Generated by
1.9.8