Etterna 0.74.4
Loading...
Searching...
No Matches
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
11{
12 public:
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
Definition ALSA9Helpers.h:9
Definition RageSoundDriver_ALSA9_Software.h:11
Definition RageSoundDriver.h:15
Thread, mutex, semaphore, and event classes.
Definition RageThreads.h:155