Etterna
0.74.4
Loading...
Searching...
No Matches
src
arch
Sound
RageSoundDriver_ALSA9_Software.h
1
#ifndef RAGE_SOUND_ALSA9_SOFTWARE_H
2
#define RAGE_SOUND_ALSA9_SOFTWARE_H
3
4
#include "RageUtil/Sound/RageSound.h"
5
#include "RageUtil/Misc/RageThreads.h"
6
#include "RageSoundDriver.h"
7
8
#include "ALSA9Helpers.h"
9
10
class
RageSoundDriver_ALSA9_Software
:
public
RageSoundDriver
11
{
12
public
:
13
RageSoundDriver_ALSA9_Software
();
14
~RageSoundDriver_ALSA9_Software
();
15
std::string Init();
16
17
/* virtuals: */
18
int64_t GetPosition()
const
;
19
float
GetPlayLatency()
const
;
20
int
GetSampleRate()
const
{
return
m_iSampleRate; }
21
22
void
SetupDecodingThread();
23
24
private
:
25
static
int
MixerThread_start(
void
* p);
26
void
MixerThread();
27
bool
GetData();
28
29
bool
m_bShutdown;
30
int
m_iSampleRate;
31
Alsa9Buf
* m_pPCM;
32
RageThread
m_MixingThread;
33
};
34
35
#endif
Alsa9Buf
Definition
ALSA9Helpers.h:9
RageSoundDriver_ALSA9_Software
Definition
RageSoundDriver_ALSA9_Software.h:11
RageSoundDriver
Definition
RageSoundDriver.h:15
RageThread
Thread, mutex, semaphore, and event classes.
Definition
RageThreads.h:155
Generated by
1.9.8